mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Set parent when creating.
This commit is contained in:
@@ -904,8 +904,10 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) {
|
||||
}
|
||||
|
||||
// Otherwise, create
|
||||
else
|
||||
else {
|
||||
updated_connection.parent = location_value;
|
||||
GuacamoleService.Connections.create(updated_connection, parameters);
|
||||
}
|
||||
|
||||
// Hide dialog and reset UI
|
||||
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
||||
@@ -1090,8 +1092,10 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) {
|
||||
}
|
||||
|
||||
// Otherwise, create
|
||||
else
|
||||
else {
|
||||
updated_group.parent = location_value;
|
||||
GuacamoleService.ConnectionGroups.create(updated_group, parameters);
|
||||
}
|
||||
|
||||
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
||||
GuacAdmin.reset();
|
||||
|
Reference in New Issue
Block a user