Ensure parent is set for newly-created connections and groups (for now). Need to actually implement connection/group move.
This commit is contained in:
1 parent
0127aec1b9
commit
386c56840b
1 file changed
+8
-2
@@ -882,8 +882,11 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) {
|
||||
GuacamoleService.Connections.update(updated_connection, parameters);
|
||||
|
||||
// Otherwise, create
|
||||
else
|
||||
else {
|
||||
// FIXME: Always saving to root. Remove line below when move implemented.
|
||||
updated_connection.parent = GuacAdmin.cached_root_group;
|
||||
GuacamoleService.Connections.create(updated_connection, parameters);
|
||||
}
|
||||
|
||||
// Hide dialog and reset UI
|
||||
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
||||
@@ -1035,8 +1038,11 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) {
|
||||
GuacamoleService.ConnectionGroups.update(updated_group, parameters);
|
||||
|
||||
// Otherwise, create
|
||||
else
|
||||
else {
|
||||
// FIXME: Always saving to root. Remove line below when move implemented.
|
||||
updated_group.parent = GuacAdmin.cached_root_group;
|
||||
GuacamoleService.ConnectionGroups.create(updated_group, parameters);
|
||||
}
|
||||
|
||||
dialog.getElement().parentNode.removeChild(dialog.getElement());
|
||||
GuacAdmin.reset();
|
||||
|
||||
Reference in new issue
Block a user