Skip to content

Commit

Permalink
Refactor ldap_domain_list initialization in Settings.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Mar 18, 2024
1 parent c8ce306 commit 01867a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -311,12 +311,13 @@ export default {
this.host = config.host;
this.isLetsEncryptEnabled = config.lets_encrypt;
this.isHttpToHttpsEnabled = config.http2https;
this.ldap_domain_list = config.ldap_domain_list;
this.ldap_domain_list.unshift({
let ldap_domain_list_tmp = config.ldap_domain_list;
ldap_domain_list_tmp = ldap_domain_list_tmp.unshift({
name: "no_user_domain",
label: this.$t("settings.internal_authentication"),
value: "-",
});
this.ldap_domain_list = ldap_domain_list_tmp;
// force to reload value after dom update
this.$nextTick(() => {
this.ldap_domain = config.ldap_domain;
Expand Down

0 comments on commit 01867a6

Please sign in to comment.