mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-5: Define connection and sharing profile parameters separately.
This commit is contained in:
		| @@ -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> | ||||
|  | ||||
|   | ||||
| @@ -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 || []; | ||||
|  | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user