Skip to content
Snippets Groups Projects
Commit 84b59583 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

confirmation dialog for user removal

parent a2b698fb
No related branches found
No related tags found
1 merge request!233Resolve "Admin panel: "Confirm remove" messages"
Pipeline #
......@@ -109,7 +109,15 @@ UsersAdminPanel.prototype._createUsersTableRow = function () {
});
$(usersTable).on("click", "[name='removeUser']", function () {
var button = this;
return self.removeUser($(button).attr("data")).then(null, GuiConnector.alert);
return self.askConfirmRemoval({
title: "INFO",
content: "Do you really want to remove this user?",
input: false
}).then(function (param) {
if (param.status) {
return self.removeUser($(button).attr("data"))
}
}).catch(GuiConnector.alert);
});
$(usersTable).on("click", "[name='showEditDialog']", function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment