From 7a16c935cd227d3f066502a11f297d6624c32eca Mon Sep 17 00:00:00 2001 From: Joe Fleming Date: Wed, 1 Jun 2016 10:53:40 -0700 Subject: [PATCH] use error notification to show failures to the user --- .../kibana/public/settings/sections/objects/_objects.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/kibana/public/settings/sections/objects/_objects.js b/src/plugins/kibana/public/settings/sections/objects/_objects.js index c237b3e4823f5..1a3938aeeb647 100644 --- a/src/plugins/kibana/public/settings/sections/objects/_objects.js +++ b/src/plugins/kibana/public/settings/sections/objects/_objects.js @@ -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 () {