diff --git a/public/app/features/org/org_users_ctrl.ts b/public/app/features/org/org_users_ctrl.ts index 5738eff1f77..9d77148e2ab 100644 --- a/public/app/features/org/org_users_ctrl.ts +++ b/public/app/features/org/org_users_ctrl.ts @@ -37,6 +37,18 @@ export class OrgUsersCtrl { } removeUser(user) { + this.$scope.appEvent('confirm-modal', { + title: 'Confirm delete user', + text: 'Are you sure you want to delete user ' + user.login + '?', + yesText: "Delete", + icon: "fa-warning", + onConfirm: () => { + this.removeUserConfirmed(user); + } + }); + } + + removeUserConfirmed(user) { this.backendSrv.delete('/api/org/users/' + user.userId) .then(() => { this.get();