Clear exposed ldap errors correctly
This commit is contained in:
@@ -896,7 +896,7 @@
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<span class="has-error" ng-show="exposedLdapConfig.errorMessage">{{ exposedLdapConfig.errorMessage }}</span>
|
||||
<span class="has-error" ng-show="exposedLdapConfig.error">{{ exposedLdapConfig.error }}</span>
|
||||
|
||||
<button class="btn btn-outline btn-primary pull-right" ng-click="exposedLdapConfig.submit()" ng-disabled="!exposedLdapConfigForm.$dirty || exposedLdapConfig.busy">
|
||||
<i class="fa fa-circle-notch fa-spin" ng-show="exposedLdapConfig.busy"></i> {{ 'users.settings.saveAction' | tr }}
|
||||
|
||||
@@ -692,7 +692,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
$scope.exposedLdapConfig = {
|
||||
enabled: false,
|
||||
allowlist: '',
|
||||
errorMessage: '',
|
||||
error: '',
|
||||
|
||||
refresh: function () {
|
||||
Client.getExposedLdapConfig(function (error, result) {
|
||||
@@ -714,7 +714,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
};
|
||||
|
||||
Client.setExposedLdapConfig(data, function (error) {
|
||||
if (error) $scope.exposedLdapConfig.errorMessage = error.message;
|
||||
if (error) $scope.exposedLdapConfig.error = error.message;
|
||||
|
||||
$scope.exposedLdapConfig.success = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user