keep selected date when re-opening calendar
This commit is contained in:
Vendored
+1
-1
@@ -1877,7 +1877,6 @@
|
|||||||
};
|
};
|
||||||
this.loadData = () => {
|
this.loadData = () => {
|
||||||
this.loadMonthTasks();
|
this.loadMonthTasks();
|
||||||
this.showToday();
|
|
||||||
};
|
};
|
||||||
this.storageModel = storageModel2;
|
this.storageModel = storageModel2;
|
||||||
this.calendarModel = calendarModel;
|
this.calendarModel = calendarModel;
|
||||||
@@ -1891,6 +1890,7 @@
|
|||||||
this.showTask(taskFileContent);
|
this.showTask(taskFileContent);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
this.showToday();
|
||||||
}
|
}
|
||||||
// data
|
// data
|
||||||
get monthString() {
|
get monthString() {
|
||||||
|
|||||||
@@ -184,7 +184,6 @@ export default class CalendarPageViewModel extends TaskContainingPageViewModel {
|
|||||||
|
|
||||||
loadData = (): void => {
|
loadData = (): void => {
|
||||||
this.loadMonthTasks();
|
this.loadMonthTasks();
|
||||||
this.showToday();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// init
|
// init
|
||||||
@@ -213,6 +212,9 @@ export default class CalendarPageViewModel extends TaskContainingPageViewModel {
|
|||||||
this.showTask(taskFileContent);
|
this.showTask(taskFileContent);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// initiate
|
||||||
|
this.showToday();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user