mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
small fixes
This commit is contained in:
parent
ed218e73bb
commit
2fe5c090aa
@ -180,7 +180,7 @@ async function getMaintenanceList(statusPageId) {
|
|||||||
return publicMaintenanceList;
|
return publicMaintenanceList;
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return null;
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ export default {
|
|||||||
End: "End",
|
End: "End",
|
||||||
affectedMonitorsDescription: "Select monitors that are affected by current maintenance",
|
affectedMonitorsDescription: "Select monitors that are affected by current maintenance",
|
||||||
atLeastOneMonitor: "Select at least one affected monitor",
|
atLeastOneMonitor: "Select at least one affected monitor",
|
||||||
|
maintenanceInvalidDate: "Invalid maintenance end date entered",
|
||||||
selectedStatusPagesDescription: "Select status pages to display maintenance info on",
|
selectedStatusPagesDescription: "Select status pages to display maintenance info on",
|
||||||
atLeastOneStatusPage: "Select at least one status page",
|
atLeastOneStatusPage: "Select at least one status page",
|
||||||
maintenanceTitleExample: "Network infrastructure maintenance",
|
maintenanceTitleExample: "Network infrastructure maintenance",
|
||||||
|
@ -260,6 +260,11 @@ export default {
|
|||||||
return this.processing = false;
|
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) {
|
if (!this.showOnAllPages && this.selectedStatusPages.length === 0) {
|
||||||
toast.error(this.$t("atLeastOneStatusPage"));
|
toast.error(this.$t("atLeastOneStatusPage"));
|
||||||
return this.processing = false;
|
return this.processing = false;
|
||||||
|
@ -595,7 +595,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.incident = res.data.incident;
|
this.incident = res.data.incident;
|
||||||
this.maintenance = res.data.maintenance || [];
|
this.maintenance = res.data.maintenance;
|
||||||
this.$root.publicGroupList = res.data.publicGroupList;
|
this.$root.publicGroupList = res.data.publicGroupList;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user