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