fix: note tags component not reloading on note change
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
) {{self.state.noteStatus.message}}
|
) {{self.state.noteStatus.message}}
|
||||||
.desc(ng-show='self.state.noteStatus.desc') {{self.state.noteStatus.desc}}
|
.desc(ng-show='self.state.noteStatus.desc') {{self.state.noteStatus.desc}}
|
||||||
.editor-tags
|
.editor-tags
|
||||||
#note-tags-component-container(ng-if='self.state.tagsComponent')
|
#note-tags-component-container(ng-if='self.state.tagsComponent && !self.note.errorDecrypting')
|
||||||
component-view.component-view(
|
component-view.component-view(
|
||||||
component-uuid='self.state.tagsComponent.uuid',
|
component-uuid='self.state.tagsComponent.uuid',
|
||||||
ng-class="{'locked' : self.noteLocked}",
|
ng-class="{'locked' : self.noteLocked}",
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
p.sk-p(ng-if='!self.note.waitingForKey')
|
p.sk-p(ng-if='!self.note.waitingForKey')
|
||||||
| There was an error decrypting this item. Ensure you are running the
|
| There was an error decrypting this item. Ensure you are running the
|
||||||
| latest version of this app, then sign out and sign back in to try again.
|
| latest version of this app, then sign out and sign back in to try again.
|
||||||
#editor-pane-component-stack(ng-show='self.note')
|
#editor-pane-component-stack(ng-if='!self.note.errorDecrypting' ng-show='self.note')
|
||||||
#component-stack-menu-bar.sk-app-bar.no-edges(ng-if='self.state.stackComponents.length')
|
#component-stack-menu-bar.sk-app-bar.no-edges(ng-if='self.state.stackComponents.length')
|
||||||
.left
|
.left
|
||||||
.sk-app-bar-item(
|
.sk-app-bar-item(
|
||||||
|
|||||||
@@ -290,6 +290,7 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
|
|||||||
this.reloadTagsString();
|
this.reloadTagsString();
|
||||||
this.reloadPreferences();
|
this.reloadPreferences();
|
||||||
this.reloadStackComponents();
|
this.reloadStackComponents();
|
||||||
|
this.reloadNoteTagsComponent();
|
||||||
if (note.safeText().length === 0) {
|
if (note.safeText().length === 0) {
|
||||||
this.focusTitle();
|
this.focusTitle();
|
||||||
}
|
}
|
||||||
@@ -1080,7 +1081,6 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
|
|||||||
this.application.componentManager!.contextItemDidChangeInArea(ComponentArea.EditorStack);
|
this.application.componentManager!.contextItemDidChangeInArea(ComponentArea.EditorStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stackComponentHidden(component: SNComponent) {
|
stackComponentHidden(component: SNComponent) {
|
||||||
return this.application.componentManager?.isComponentHidden(component);
|
return this.application.componentManager?.isComponentHidden(component);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
private removeObservers: Array<() => void> = [];
|
private removeObservers: Array<() => void> = [];
|
||||||
|
|
||||||
/* @ngInject */
|
/* @ngInject */
|
||||||
constructor($timeout: ng.ITimeoutService, ) {
|
constructor($timeout: ng.ITimeoutService,) {
|
||||||
super($timeout);
|
super($timeout);
|
||||||
this.resetPagination();
|
this.resetPagination();
|
||||||
}
|
}
|
||||||
@@ -259,6 +259,9 @@ class NotesViewCtrl extends PureViewCtrl<{}, NotesState> {
|
|||||||
|
|
||||||
async selectNote(note: SNNote) {
|
async selectNote(note: SNNote) {
|
||||||
await this.appState.openEditor(note.uuid);
|
await this.appState.openEditor(note.uuid);
|
||||||
|
if (note.waitingForKey) {
|
||||||
|
this.application.presentKeyRecoveryWizard();
|
||||||
|
}
|
||||||
this.reloadNotes();
|
this.reloadNotes();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user