Skip to content

Commit

Permalink
Add validation for timezone field in Settings.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 12, 2024
1 parent 0b9f2f0 commit eaf2bb3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,14 @@ export default {
}
isValidationOk = false;
}
if (!this.timezone) {
this.error.timezone = "common.required";

if (isValidationOk) {
this.focusElement("timezone");
}
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 eaf2bb3

Please sign in to comment.