small fixes

This commit is contained in:
Karel Krýda 2022-05-08 20:50:08 +02:00
parent ed218e73bb
commit 2fe5c090aa
4 changed files with 8 additions and 2 deletions

View file

@ -260,6 +260,11 @@ export default {
return this.processing = false;
}
if (this.maintenance.start_date >= this.maintenance.end_date) {
toast.error(this.$t("maintenanceInvalidDate"));
return this.processing = false;
}
if (!this.showOnAllPages && this.selectedStatusPages.length === 0) {
toast.error(this.$t("atLeastOneStatusPage"));
return this.processing = false;