feat: modify current tags to v4 style

This commit is contained in:
Antonella Sgarlatta
2021-05-19 17:39:18 -03:00
parent 0a433ff5d4
commit 90250d22a3
6 changed files with 68 additions and 12 deletions

View File

@@ -29,6 +29,7 @@ export class NotesState {
};
contextMenuMaxHeight: number | 'auto' = 'auto';
showProtectedWarning = false;
activeNoteTags: SNTag[] = [];
constructor(
private application: WebApplication,
@@ -40,6 +41,7 @@ export class NotesState {
contextMenuOpen: observable,
contextMenuPosition: observable,
showProtectedWarning: observable,
activeNoteTags: observable,
selectedNotesCount: computed,
trashedNotesCount: computed,
@@ -164,6 +166,11 @@ export class NotesState {
} else {
this.activeEditor.setNote(note);
}
runInAction(() => {
this.activeNoteTags = this.application.getAppState().getNoteTags(note);
});
await this.onActiveEditorChanged();
if (note.waitingForKey) {