Merge pull request #7345 from w33ble/fix/object-delete-errors

Notify user of delete failures
This commit is contained in:
Lukas Olson 2016-06-02 11:15:46 -07:00
commit 420f1fa092

View file

@ -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 () {