Skip to content

Commit

Permalink
Merge pull request #7345 from w33ble/fix/object-delete-errors
Browse files Browse the repository at this point in the history
Notify user of delete failures
  • Loading branch information
lukasolson committed Jun 2, 2016
2 parents 6e46c0e + 7a16c93 commit 420f1fa
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 420f1fa

Please sign in to comment.