Skip to content

Commit

Permalink
Add default value for empty mail server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Feb 6, 2024
1 parent 520f54e commit 0b171de
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,16 @@ export default {
} else {
this.mail_server = "";
}
// if mail_server_URL is empty, set default value
if (this.mail_server_URL.length === 0) {
this.mail_server_URL.push({
label: this.$t("settings.no_available_mail_domain_check_users"),
value: "",
name: ""
});
// we want to avoid to save the form, there is no users set in the mail domain
this.mail_server = "";
}
});

this.mail_server_URL = config.mail_server_URL;
Expand Down

0 comments on commit 0b171de

Please sign in to comment.