KEYCLOAK-2308
Save button is enabled on Theme page
This commit is contained in:
parent
81fc03b3fe
commit
55ab973cad
2 changed files with 5 additions and 3 deletions
|
@ -343,8 +343,8 @@ module.controller('RealmThemeCtrl', function($scope, Current, Realm, realm, serv
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.$watch('realm.supportedLocales', function(oldVal, newVal) {
|
$scope.$watch('realm.supportedLocales', function(oldVal, newVal) {
|
||||||
if(angular.isUndefined(newVal) || (angular.isArray(newVal) && newVal.length == 0)){
|
if ($scope.realm.defaultLocale && newVal && newVal.indexOf($scope.realm.defaultLocale) == -1) {
|
||||||
$scope.realm.defaultLocale = undefined;
|
$scope.realm.defaultLocale = null;
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
});
|
});
|
||||||
|
|
|
@ -65,7 +65,9 @@
|
||||||
<label class="col-md-2 control-label" for="supportedLocales" class="control-label two-lines">{{:: 'supported-locales' | translate}}</label>
|
<label class="col-md-2 control-label" for="supportedLocales" class="control-label two-lines">{{:: 'supported-locales' | translate}}</label>
|
||||||
|
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<input id="supportedLocales" type="text" ui-select2="supportedLocalesOptions" ng-model="realm.supportedLocales" placeholder="{{:: 'supported-locales.placeholder' | translate}}" ng-required="realm.internationalizationEnabled" ng-disabled="!realm.internationalizationEnabled">
|
<select ui-select2 id="supportedLocales" ng-model="realm.supportedLocales" data-placeholder="{{:: 'supported-locales.placeholder' | translate}}" ng-required="realm.internationalizationEnabled" multiple>
|
||||||
|
<option ng-repeat="option in supportedLocalesOptions.tags" value="{{option}}">{{option}}</option>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" data-ng-show="realm.internationalizationEnabled">
|
<div class="form-group" data-ng-show="realm.internationalizationEnabled">
|
||||||
|
|
Loading…
Reference in a new issue