mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-21 22:14:01 +08:00
Update status page's maintenance message
This commit is contained in:
@@ -422,22 +422,6 @@ export default {
|
||||
return this.processing = false;
|
||||
}
|
||||
|
||||
/*
|
||||
TODO: Temporary disable
|
||||
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;
|
||||
}
|
||||
|
||||
this.maintenance.start_date = this.$root.toUTC(this.maintenance.start_date);
|
||||
this.maintenance.end_date = this.$root.toUTC(this.maintenance.end_date);
|
||||
*/
|
||||
|
||||
if (this.isAdd) {
|
||||
this.$root.addMaintenance(this.maintenance, async (res) => {
|
||||
if (res.ok) {
|
||||
|
Reference in New Issue
Block a user