GUACAMOLE-5: Define connection and sharing profile parameters separately.

This commit is contained in:
Michael Jumper
2016-08-07 22:50:26 -07:00
parent 989ad39513
commit 14365ff72e
7 changed files with 108 additions and 33 deletions

View File

@@ -47,7 +47,7 @@
<h2 class="header">{{'MANAGE_CONNECTION.SECTION_HEADER_PARAMETERS' | translate}}</h2>
<div class="section connection-parameters" ng-class="{loading: !parameters}">
<guac-form namespace="getNamespace(connection.protocol)"
content="protocols[connection.protocol].forms"
content="protocols[connection.protocol].connectionForms"
model="parameters"></guac-form>
</div>

View File

@@ -44,13 +44,23 @@ angular.module('rest').factory('Protocol', [function defineProtocol() {
this.name = template.name;
/**
* An array of forms containing all known parameters for this protocol,
* their types, and other information.
* An array of forms describing all known parameters for a connection
* using this protocol, including their types and other information.
*
* @type Form[]
* @default []
*/
this.forms = template.forms || [];
this.connectionForms = template.connectionForms || [];
/**
* An array of forms describing all known parameters relevant to a
* sharing profile whose primary connection uses this protocol,
* including their types, and other information.
*
* @type Form[]
* @default []
*/
this.sharingProfileForms = template.sharingProfileForms || [];
};