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