GUACAMOLE-292: Display all object attributes if we are creating the object.

This commit is contained in:
Michael Jumper committed 2017-05-26 20:45:44 -07:00
1 parent 54a3ffeae3
commit 74293c23dd
8 files changed
+79 -7

No files matched your search

@@ -195,7 +195,26 @@ angular.module('manage').controller('manageConnectionGroupController', ['$scope'
value : ConnectionGroup.Type.BALANCING
}
];
/**
* Returns whether the current user can change/set all connection group
* attributes for the connection group being edited, regardless of whether
* those attributes are already explicitly associated with that connection
* group.
*
* @returns {Boolean}
* true if the current user can change all attributes for the
* connection group being edited, regardless of whether those
* attributes are already explicitly associated with that connection
* group, false otherwise.
*/
$scope.canChangeAllAttributes = function canChangeAllAttributes() {
// All attributes can be set if we are creating the connection group
return !identifier;
};
/**
* Cancels all pending edits, returning to the management page.
*/