Skip to content

Commit

Permalink
Add warning notification for misconfigured mail module
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Feb 6, 2024
1 parent aa93c6a commit c3f933d
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@
$t("settings.enabled")
}}</template>
</cv-toggle>
<cv-row v-if="mail_modules_id.length === 0">
<cv-column>
<NsInlineNotification
kind="warning"
:title="$t('settings.mail_module_misconfigured')"
:description="$t('settings.no_available_mail_domain_check_users')"
:showCloseButton="false"
/>
</cv-column>
</cv-row>
<NsComboBox
v-model.trim="mail_module"
:autoFilter="true"
Expand Down Expand Up @@ -602,11 +612,6 @@ export default {
this.timezone = config.timezone === '-' ? '' : config.timezone;
// if mail_modules_id is empty, set default value
if (this.mail_modules_id.length === 0) {
this.mail_modules_id.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_module = "";
}
Expand Down

0 comments on commit c3f933d

Please sign in to comment.