From 3d28db6897e2a95506cd3edaedd59c136ac98452 Mon Sep 17 00:00:00 2001 From: Tim Geyssens Date: Thu, 19 Sep 2013 16:03:42 +0200 Subject: [PATCH] List view editor: hooks in notification service --- .../views/propertyeditors/listview/listview.controller.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js index eabe1ea815..659e70345c 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.controller.js @@ -1,6 +1,6 @@ angular.module("umbraco") .controller("Umbraco.Editors.ListViewController", - function ($rootScope, $scope, $routeParams, contentResource, contentTypeResource, editorContextService) { + function ($rootScope, $scope, $routeParams, contentResource, contentTypeResource, editorContextService, notificationsService) { $scope.selected = []; @@ -119,7 +119,8 @@ angular.module("umbraco") contentResource.deleteById($scope.selected[i]).then(function (data) { $scope.bulkStatus = "Deleted doc" + i + " out of "+ total +"documents"; if (current == total) { - $scope.bulkStatus = "Deleting done"; + notificationsService.success("Bulk action", "Deleted " + total + "documents"); + $scope.bulkStatus = ""; $scope.selected = []; $scope.reloadView($scope.content.id); } @@ -139,7 +140,8 @@ angular.module("umbraco") .then(function(content){ $scope.bulkStatus = "Publishing doc" + i + " out of " + total + "documents"; if (current == total) { - $scope.bulkStatus = "Publish done"; + notificationsService.success("Bulk action", "Published " + total + "documents"); + $scope.bulkStatus = ""; $scope.reloadView($scope.content.id); } current++;