mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-09 22:51:22 +00:00
GUAC-1176: Remove all human-readable title properties from the REST form objects.
This commit is contained in:
@@ -29,12 +29,12 @@ angular.module('form').controller('checkboxFieldController', ['$scope',
|
||||
|
||||
// Update typed value when model is changed
|
||||
$scope.$watch('model', function modelChanged(model) {
|
||||
$scope.typedValue = (model === $scope.field.options[0].value);
|
||||
$scope.typedValue = (model === $scope.field.options[0]);
|
||||
});
|
||||
|
||||
// Update string value in model when typed value is changed
|
||||
$scope.$watch('typedValue', function typedValueChanged(typedValue) {
|
||||
$scope.model = (typedValue ? $scope.field.options[0].value : '');
|
||||
$scope.model = (typedValue ? $scope.field.options[0] : '');
|
||||
});
|
||||
|
||||
}]);
|
||||
|
@@ -1 +1 @@
|
||||
<select ng-model="model" ng-options="option.value as getFieldOption(option.value) | translate for option in field.options | orderBy: value"></select>
|
||||
<select ng-model="model" ng-options="option as getFieldOption(option) | translate for option in field.options | orderBy: value"></select>
|
Reference in New Issue
Block a user