use error notification to show failures to the user

This commit is contained in:
Joe Fleming 2016-06-01 10:53:40 -07:00
parent 6ebe67d44b
commit 7a16c935cd

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