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
+10 -2
View File
@@ -25,7 +25,11 @@ export default class TaskPageViewModel {
// paths
getBasePath = (): string[] => {
return [...this.taskModel.getBasePath()];
return [...this.taskModel.getViewPath()];
};
getBoardViewPath = (boardId): string[] => {
return [...this.getBasePath(), boardId];
};
getLastUsedBoardPath = (): string[] => {
@@ -82,7 +86,11 @@ export default class TaskPageViewModel {
// view
showBoardInList = (boardInfo: BoardInfoFileContent): void => {
const boardViewModel: BoardViewModel = new BoardViewModel(this, boardInfo);
const boardViewModel: BoardViewModel = new BoardViewModel(
this,
boardInfo,
this.storageModel
);
this.boardViewModels.set(boardInfo.fileId, boardViewModel);
};