mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-10 23:40:50 -04:00
Update status page's maintenance message
This commit is contained in:
parent
e07aa982c3
commit
dfb75c8afb
6 changed files with 80 additions and 81 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue