add method to delete board

This commit is contained in:
marlon-erler
2024-07-22 18:09:58 +02:00
parent 3cc961a82b
commit 8a3b63ea7c
3 changed files with 38 additions and 2 deletions
+19
View File
@@ -138,6 +138,25 @@ export default class FileModel {
this.storageModel = storageModel;
this.taskModel = new TaskModel(this.storageModel, chatModel, this);
// DEV
// this.taskModel.createBoard("Hello");
// const boards = this.taskModel.listBoardIds();
// console.log(boards);
// const boardId = boards[0];
// const firstBoardInfo = this.taskModel.getBoardInfo(boardId);
// console.log(firstBoardInfo);
// const newInfo = TaskModel.createBoardInfoFileVersion(
// boardId,
// "renamed",
// Color.Coral
// );
// this.taskModel.createOrUpdateBoard(newInfo);
// setTimeout(() => this.taskModel.deleteBoard(boardId), 7000);
}
// utility