fix: note tags component not reloading on note change

This commit is contained in:
Mo Bitar
2020-10-06 16:24:32 -05:00
parent 0d387349d7
commit 48a9038167
3 changed files with 7 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
private removeObservers: Array<() => void> = [];
/* @ngInject */
constructor($timeout: ng.ITimeoutService, ) {
constructor($timeout: ng.ITimeoutService,) {
super($timeout);
this.resetPagination();
}
@@ -259,6 +259,9 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
async selectNote(note: SNNote) {
await this.appState.openEditor(note.uuid);
if (note.waitingForKey) {
this.application.presentKeyRecoveryWizard();
}
this.reloadNotes();
}