mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
Allow GroupViews to be controlled by flags. Implement MULTISELECT and SHOW_CONNECTIONS flags.
This commit is contained in:
@@ -497,7 +497,8 @@ GuacAdmin.UserEditor = function(name, parameters) {
|
||||
var connections_section = GuacUI.createChildElement(sections, "dd");
|
||||
|
||||
// Construct group view for all readable connections
|
||||
var group_view = new GuacUI.GroupView(GuacAdmin.cached_root_group, true);
|
||||
var group_view = new GuacUI.GroupView(GuacAdmin.cached_root_group,
|
||||
GuacUI.GroupView.SHOW_CONNECTIONS | GuacUI.GroupView.MULTISELECT);
|
||||
connections_section.appendChild(group_view.getElement());
|
||||
|
||||
// Update connection permissions when changed
|
||||
@@ -1231,7 +1232,7 @@ GuacAdmin.reset = function() {
|
||||
|
||||
// Add new group view
|
||||
GuacAdmin.containers.connection_list.innerHTML = "";
|
||||
var group_view = new GuacUI.GroupView(GuacAdmin.cached_root_group, false);
|
||||
var group_view = new GuacUI.GroupView(GuacAdmin.cached_root_group, GuacUI.GroupView.SHOW_CONNECTIONS);
|
||||
GuacAdmin.containers.connection_list.appendChild(group_view.getElement());
|
||||
|
||||
// Show connection editor when connections are clicked
|
||||
|
Reference in New Issue
Block a user