Update Maintenance UI for recurring

This commit is contained in:
Louis Lam
2022-09-24 02:33:29 +08:00
parent 617ba49e6c
commit 9d99c39f30
10 changed files with 342 additions and 31 deletions

View File

@@ -26,6 +26,15 @@ export default {
return dayjs.tz(value, this.timezone).utc().format();
},
/**
* Used for <input type="datetime" />
* @param value
* @returns {string}
*/
toDateTimeInputFormat(value) {
return this.datetimeFormat(value, "YYYY-MM-DDTHH:mm");
},
/**
* Return a given value in the format YYYY-MM-DD HH:mm:ss
* @param {any} value Value to format as date time

View File

@@ -46,6 +46,10 @@ export default {
}
return this.userTheme;
}
},
isDark() {
return this.theme === "dark";
}
},