mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUAC-800: Migrate to JSON for protocol descriptions. Use full Forms instead of simply Fields for protocol parameters (allow sections).
This commit is contained in:
		| @@ -29,6 +29,8 @@ | ||||
|  | ||||
| .connection-parameters .form .fields { | ||||
|     display: table; | ||||
|     padding-left: .5em; | ||||
|     border-left: 3px solid rgba(0,0,0,0.125); | ||||
| } | ||||
|  | ||||
| .connection-parameters .form .fields .labeled-field { | ||||
| @@ -41,3 +43,7 @@ | ||||
|     padding: 0.125em; | ||||
|     vertical-align: top; | ||||
| } | ||||
|  | ||||
| .connection-parameters .form .fields .field-header { | ||||
|     padding-right: 1em; | ||||
| } | ||||
|   | ||||
| @@ -61,7 +61,7 @@ THE SOFTWARE. | ||||
|     <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].parameters" | ||||
|                    content="protocols[connection.protocol].forms" | ||||
|                    model="parameters"></guac-form> | ||||
|     </div> | ||||
|  | ||||
|   | ||||
| @@ -54,13 +54,13 @@ angular.module('rest').factory('Protocol', [function defineProtocol() { | ||||
|         this.title = template.title; | ||||
|  | ||||
|         /** | ||||
|          * An array of all known parameters for this protocol, their types, | ||||
|          * and other information. | ||||
|          * An array of forms containing all known parameters for this protocol, | ||||
|          * their types, and other information. | ||||
|          * | ||||
|          * @type Field[] | ||||
|          * @type Form[] | ||||
|          * @default [] | ||||
|          */ | ||||
|         this.parameters = template.parameters || []; | ||||
|         this.forms = template.forms || []; | ||||
|  | ||||
|     }; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user