Skip to content

Commit

Permalink
Update timezone handling in Settings.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 12, 2024
1 parent df8e79c commit a0ea91b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export default {
mail_module: "",
ejabberd_module: "",
locale: "",
timezone: "",
accepted_timezone_list: "",
limit_min: "",
limit_max: "",
webapp: {
Expand Down Expand Up @@ -599,7 +599,7 @@ export default {
} else {
this.ejabberd_module = "-";
}
this.timezone = config.timezone;
this.timezone = config.timezone === '-' ? '' : config.timezone;
});
this.loading.getConfiguration = false;
this.focusElement("hostname");
Expand All @@ -624,6 +624,14 @@ export default {
}
isValidationOk = false;
}
if (!this.timezone) {
this.error.accepted_timezone_list = "common.required";

if (isValidationOk) {
this.focusElement("accepted_timezone_list");
}
isValidationOk = false;
}

if (parseInt(this.webapp.min_memory) > parseInt(this.webapp.max_memory)) {
this.error.limit_min = "error.choose_min_webapp_memory_MB";
Expand Down

0 comments on commit a0ea91b

Please sign in to comment.