Commit 84b59583 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

confirmation dialog for user removal

parent a2b698fb
Pipeline #4167 passed with stage
in 1 minute and 5 seconds
......@@ -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 () {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment