update paths, persist selected view in board

This commit is contained in:
marlon-erler
2024-07-23 21:33:22 +02:00
parent c49b16449b
commit 7543090c38
6 changed files with 96 additions and 8 deletions
+5 -1
View File
@@ -26,6 +26,10 @@ export default class TaskModel {
return this.fileModel.getModelContainerPath(FileModelSubPath.ModelTask);
};
getViewPath = (): string[] => {
return [...this.getBasePath(), FileModelSubPath.ModelView];
};
getBoardFilePath = (boardId: string): string[] => {
return [...this.fileModel.getFilePath(boardId)];
};
@@ -222,7 +226,7 @@ export default class TaskModel {
export enum TaskModelSubPaths {
Boards = "boards",
BoardTasks = "tasks",
};
}
// types
export interface BoardInfoFileContent extends FileContent<"board-info"> {