Clear exposed ldap errors correctly

This commit is contained in:
Johannes Zellner
2021-12-10 17:10:10 +01:00
parent d524118759
commit c775e8ae05
2 changed files with 3 additions and 3 deletions

View File

@@ -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 }}

View File

@@ -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;