mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUAC-932: Display the cog when parameters are not yet loaded.
This commit is contained in:
		| @@ -36,7 +36,6 @@ angular.module('manage').controller('connectionEditModalController', ['$scope', | ||||
|      | ||||
|     // Copy data into a new conection object in case the user doesn't want to save | ||||
|     $scope.connection = new Connection($scope.connection); | ||||
|     $scope.connection.parameters = {}; | ||||
|      | ||||
|     var newConnection = !$scope.connection.identifier; | ||||
|      | ||||
| @@ -60,6 +59,9 @@ angular.module('manage').controller('connectionEditModalController', ['$scope', | ||||
|         }); | ||||
|  | ||||
|     } | ||||
|     else { | ||||
|         $scope.connection.parameters = {}; | ||||
|     } | ||||
|      | ||||
|     /** | ||||
|      * Close the modal. | ||||
|   | ||||
| @@ -65,14 +65,17 @@ THE SOFTWARE. | ||||
|               </table> | ||||
|             </dd> | ||||
|  | ||||
|             <dd> | ||||
|             <!-- Connection parameters --> | ||||
|             <dt>{{'manage.edit.connection.parameters' | translate}}</dt> | ||||
|  | ||||
|             <dd ng-class="{loading: !connection.parameters}"> | ||||
|               <table class="fields section"> | ||||
|                    | ||||
|                 <!-- All the different possible editable field types --> | ||||
|                 <tr ng-repeat="parameter in protocols[connection.protocol].parameters"> | ||||
|                   <th>{{'protocol.' + connection.protocol + '.parameters.' + parameter.name + '.label' | translate}}:</th> | ||||
|                   <td> | ||||
|                       <guac-connection-parameter protocol="protocols[connection.protocol]" name="parameter.name" value="connection.parameters[parameter.name]" /> | ||||
|                       <guac-connection-parameter protocol="protocols[connection.protocol]" name="parameter.name" parameters="connection.parameters"/> | ||||
|                   </td> | ||||
|                 </tr> | ||||
|               </table> | ||||
|   | ||||
| @@ -46,6 +46,7 @@ | ||||
|                 "root"              : "ROOT", | ||||
|                 "location"          : "Location:", | ||||
|                 "name"              : "Name:", | ||||
|                 "parameters"        : "Parameters:", | ||||
|                 "history"           : { | ||||
|                     "connectionNotUsed" : "This connection has not yet been used.", | ||||
|                     "usageHistory"      : "Usage History:", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user