mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
Prompt user for user/connection deletion.
This commit is contained in:
@@ -542,9 +542,13 @@ GuacAdmin.addUser = function(name) {
|
|||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
GuacamoleService.Users.remove(GuacAdmin.selected_user);
|
// Delete user upon confirmation
|
||||||
deselect();
|
if (confirm("Are you sure you want to delete the user \""
|
||||||
GuacAdmin.reset();
|
+ name + "\"?")) {
|
||||||
|
GuacamoleService.Users.remove(GuacAdmin.selected_user);
|
||||||
|
deselect();
|
||||||
|
GuacAdmin.reset();
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -808,9 +812,13 @@ GuacAdmin.addConnection = function(connection) {
|
|||||||
|
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
GuacamoleService.Connections.remove(GuacAdmin.selected_connection);
|
// Delete connection upon confirmation
|
||||||
deselect();
|
if (confirm("Are you sure you want to delete the connection \""
|
||||||
GuacAdmin.reset();
|
+ connection.id + "\"?")) {
|
||||||
|
GuacamoleService.Connections.remove(GuacAdmin.selected_connection);
|
||||||
|
deselect();
|
||||||
|
GuacAdmin.reset();
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user