implement model methods for backup

This commit is contained in:
marlon-erler
2026-08-29 02:10:26 +02:00
parent 2c8b078b80
commit 2245fb5885
20 changed files with 11999 additions and 8945 deletions
+6 -3
View File
@@ -12,11 +12,11 @@ export default class CalendarModel {
readonly settingsModel: SettingsModel;
// paths
get basePath (): string[] {
get basePath(): string[] {
return this.fileModel.getModelContainerPath(
FileModelSubPath.ModelCalendar,
);
};
}
readonly getViewPath = (): string[] => {
return [...this.basePath, FileModelSubPath.ModelView];
@@ -44,7 +44,10 @@ export default class CalendarModel {
this.storageModel.write(referencePath, "");
};
readonly deleteTaskReference = (monthString: string, taskId: string): void => {
readonly deleteTaskReference = (
monthString: string,
taskId: string,
): void => {
const monthPath: string[] = this.getMonthPath(monthString);
const referencePath: string[] = [...monthPath, taskId];