cleanup
This commit is contained in:
Vendored
+2
-9
@@ -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("");
|
||||||
|
|||||||
@@ -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",
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user