add toggle to hide/show list of boards

This commit is contained in:
marlon-erler
2024-07-28 18:33:58 +02:00
parent 5cd790e86e
commit d67b56f623
7 changed files with 88 additions and 17 deletions
+6
View File
@@ -37,6 +37,8 @@ export default class TaskPageViewModel {
boardViewModels: React.MapState<BoardViewModel> = new React.MapState();
isShowingBoadList: React.State<boolean> = new React.State(true);
selectedBoardId: React.State<string | undefined> = new React.State<any>(
undefined
);
@@ -72,6 +74,10 @@ export default class TaskPageViewModel {
};
// view
toggleBoardList = (): void => {
this.isShowingBoadList.value = !this.isShowingBoadList.value;
};
showBoardInList = (boardInfo: BoardInfoFileContent): void => {
const boardViewModel: BoardViewModel = new BoardViewModel(
this.coreViewModel,