diff --git a/src/app/features/admin/adminUsersCtrl.js b/src/app/features/admin/adminUsersCtrl.js index bee287ce6af..c9be0238fd4 100644 --- a/src/app/features/admin/adminUsersCtrl.js +++ b/src/app/features/admin/adminUsersCtrl.js @@ -21,6 +21,8 @@ function (angular) { $scope.deleteUser = function(user) { $scope.appEvent('confirm-modal', { title: 'Do you want to delete ' + user.login + '?', + icon: 'fa-trash', + yesText: 'Delete', onConfirm: function() { backendSrv.delete('/api/admin/users/' + user.id).then(function() { $scope.getUsers(); diff --git a/src/app/features/dashboard/dashboardNavCtrl.js b/src/app/features/dashboard/dashboardNavCtrl.js index 73ffc2e4e4d..fa639d5dbad 100644 --- a/src/app/features/dashboard/dashboardNavCtrl.js +++ b/src/app/features/dashboard/dashboardNavCtrl.js @@ -105,6 +105,8 @@ function (angular, _, moment) { $scope.deleteDashboard = function() { $scope.appEvent('confirm-modal', { title: 'Do you want to delete dashboard ' + $scope.dashboard.title + '?', + icon: 'fa-trash', + yesText: 'Delete', onConfirm: function() { $scope.deleteDashboardConfirmed(); } diff --git a/src/app/features/dashboard/rowCtrl.js b/src/app/features/dashboard/rowCtrl.js index 6a79460da5b..409fee2fd37 100644 --- a/src/app/features/dashboard/rowCtrl.js +++ b/src/app/features/dashboard/rowCtrl.js @@ -50,6 +50,8 @@ function (angular, app, _, config) { $scope.delete_row = function() { $scope.appEvent('confirm-modal', { title: 'Are you sure you want to delete this row?', + icon: 'fa-trash', + yesText: 'delete', onConfirm: function() { $scope.dashboard.rows = _.without($scope.dashboard.rows, $scope.row); } @@ -82,6 +84,8 @@ function (angular, app, _, config) { $scope.remove_panel_from_row = function(row, panel) { $scope.appEvent('confirm-modal', { title: 'Are you sure you want to remove this panel?', + icon: 'fa-trash', + yesText: 'Delete', onConfirm: function() { row.panels = _.without(row.panels, panel); }