add board view toggles

This commit is contained in:
marlon-erler
2024-07-23 15:41:03 +02:00
parent 113502527c
commit 0a34304652
8 changed files with 132 additions and 69 deletions
+11
View File
@@ -19,6 +19,10 @@ export default class BoardViewModel {
isPresentingFilterModal: React.State<boolean> = new React.State(false);
isPresentingNewTaskModal: React.State<boolean> = new React.State(false);
selectedPage: React.State<BoardPageType> = new React.State<BoardPageType>(
BoardPageType.List
);
index: React.State<number> = new React.State(0);
// view
@@ -111,3 +115,10 @@ export default class BoardViewModel {
});
}
}
// types
export enum BoardPageType {
List = "list",
Kanban = "kanban",
StatusGrid = "status-grid",
}