update local BoardModel after saving task
This commit is contained in:
@@ -79,10 +79,6 @@ export default class BoardViewModel {
|
||||
this.selectTask(taskViewModel);
|
||||
};
|
||||
|
||||
trackTask = (taskViewModel: TaskViewModel): void => {
|
||||
this.taskViewModels.set(taskViewModel.task.fileId, taskViewModel);
|
||||
};
|
||||
|
||||
// storage
|
||||
storeLastUsedView = (): void => {
|
||||
const path: string[] = this.getLastUsedBoardPath();
|
||||
|
||||
@@ -60,7 +60,7 @@ export default class TaskViewModel {
|
||||
newTaskFileContent.time = this.time.value;
|
||||
|
||||
this.boardModel.updateTaskAndSend(newTaskFileContent);
|
||||
this.boardViewModel.trackTask(this);
|
||||
this.boardViewModel.showTaskInList(newTaskFileContent);
|
||||
};
|
||||
|
||||
// load
|
||||
|
||||
Reference in New Issue
Block a user