Skip to content

Commit

Permalink
Fix LDAP domain loading issue in Settings.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Mar 20, 2024
1 parent 5ff9847 commit eac1229
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,13 @@ export default {
this.host = config.host;
this.isLetsEncryptEnabled = config.lets_encrypt;
this.isHttpToHttpsEnabled = config.http2https;
// force to reload value after dom update
this.$nextTick(() => {
this.ldap_domain = config.ldap_domain;
if (!this.ldap_domain) {
this.ldap_domain = "-";
}
});
// for NSComboBox we need to create a temporary variable
let ldap_domain_list_tmp = config.ldap_domain_list;
ldap_domain_list_tmp.unshift({
Expand All @@ -317,14 +324,6 @@ export default {
value: "-",
});
this.ldap_domain_list = ldap_domain_list_tmp;
// force to reload value after dom update
this.$nextTick(() => {
this.ldap_domain = config.ldap_domain;
if (!this.ldap_domain) {
this.ldap_domain = "-";
}
});
this.loading.getConfiguration = false;
// set already_set to true if the configuration is not empty
if (
this.wikiName &&
Expand All @@ -335,6 +334,7 @@ export default {
) {
this.already_set = true;
}
this.loading.getConfiguration = false;
this.focusElement("host");
},
Expand Down

0 comments on commit eac1229

Please sign in to comment.