feat(schedule): improve predefined schedule groups

This commit is contained in:
2026-09-08 21:12:08 +03:00
parent a6f6586969
commit f76f33b501
9 changed files with 54 additions and 20 deletions
+3 -2
View File
@@ -17,15 +17,16 @@ export class DataStorage<T extends { id: string }> {
return this.readValues();
}
add(value: T) {
add(value: T): boolean {
const values = this.readValues();
for (const v of values) {
if (v.id == value.id) {
return;
return false;
}
}
values.push(value);
this.writeValues(values);
return true;
}
remove(id: string) {