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

@@ -19,6 +19,8 @@ class Maintenance extends BeanModel {
description: this.description,
start_date: this.start_date,
end_date: this.end_date,
strategy: this.strategy,
active: !!this.active,
};
}
@@ -27,13 +29,7 @@ class Maintenance extends BeanModel {
* @returns {Object}
*/
async toJSON() {
return {
id: this.id,
title: this.title,
description: this.description,
start_date: this.start_date,
end_date: this.end_date,
};
return this.toPublicJSON();
}
}