Skip to content

Commit

Permalink
Refactor LDAP domain list in Settings.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Mar 15, 2024
1 parent 3091981 commit e9bddd9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,12 @@ export default {
this.$nextTick(() => {
this.ldap_domain = config.ldap_domain;
});
let arr1 = [
{
name: "",
label: $t("settings.internal_authentication"),
value: "",
},
];
let arr2 = config.ldap_domain_list;
//add to ldap_domain
this.ldap_domain_list= arr1.concat(arr2);
this.ldap_domain_list = config.ldap_domain_list;
this.ldap_domain_list.unshift({
name: "no_user_domain",
label: this.$t("settings.internal_authentication"),
value: "",
});
this.loading.getConfiguration = false;
this.focusElement("wikiName");
},
Expand Down

0 comments on commit e9bddd9

Please sign in to comment.