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