Skip to content

Commit

Permalink
use error notification to show failures to the user
Browse files Browse the repository at this point in the history
  • Loading branch information
w33ble committed Jun 1, 2016
1 parent 6ebe67d commit 7a16c93
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ uiModules.get('apps/settings')
};

$scope.bulkDelete = function () {
$scope.currentTab.service.delete(pluck($scope.selectedItems, 'id')).then(refreshData).then(function () {
$scope.currentTab.service.delete(pluck($scope.selectedItems, 'id'))
.then(refreshData)
.then(function () {
$scope.selectedItems.length = 0;
});
})
.catch(error => notify.error(error));
};

$scope.bulkExport = function () {
Expand Down

0 comments on commit 7a16c93

Please sign in to comment.