This commit is contained in:
marlon-erler
2024-07-23 21:19:56 +02:00
parent dee8438751
commit c49b16449b
2 changed files with 5 additions and 22 deletions
+2 -9
View File
@@ -1504,17 +1504,10 @@
); );
// paths // paths
getBasePath = () => { getBasePath = () => {
return [...this.taskModel.getBasePath(), "view" /* View */]; return [...this.taskModel.getBasePath()];
}; };
getLastUsedBoardPath = () => { getLastUsedBoardPath = () => {
return [...this.getBasePath(), "last-used-board" /* ViewLastUsedBoard */]; return [...this.getBasePath(), "last-used-board" /* LastUsedBoard */];
};
getLastUsedViewPath = (boardId) => {
return [
...this.getBasePath(),
boardId,
"last-used-view" /* BoardLastUsedView */
];
}; };
// state // state
newBoardNameInput = new State(""); newBoardNameInput = new State("");
+3 -13
View File
@@ -25,19 +25,11 @@ export default class TaskPageViewModel {
// paths // paths
getBasePath = (): string[] => { getBasePath = (): string[] => {
return [...this.taskModel.getBasePath(), TaskPageViewModelSubPaths.View]; return [...this.taskModel.getBasePath()];
}; };
getLastUsedBoardPath = (): string[] => { getLastUsedBoardPath = (): string[] => {
return [...this.getBasePath(), TaskPageViewModelSubPaths.ViewLastUsedBoard]; return [...this.getBasePath(), TaskPageViewModelSubPaths.LastUsedBoard];
};
getLastUsedViewPath = (boardId: string): string[] => {
return [
...this.getBasePath(),
boardId,
TaskPageViewModelSubPaths.BoardLastUsedView,
];
}; };
// state // state
@@ -173,7 +165,5 @@ export default class TaskPageViewModel {
} }
export enum TaskPageViewModelSubPaths { export enum TaskPageViewModelSubPaths {
View = "view", LastUsedBoard = "last-used-board",
ViewLastUsedBoard = "last-used-board",
BoardLastUsedView = "last-used-view",
} }