refactor: rename state

This commit is contained in:
Antonella Sgarlatta
2021-06-03 13:53:49 -03:00
parent c42f1cedda
commit 386ca34178
9 changed files with 33 additions and 33 deletions

View File

@@ -410,7 +410,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
await this.appState.createEditor(title);
await this.flushUI();
await this.reloadNotes();
await this.appState.activeNote.reloadTags();
await this.appState.noteTags.reloadTags();
}
async handleTagChange(tag: SNTag) {
@@ -649,7 +649,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
__: boolean,
isCollapsed: boolean
) {
this.appState.activeNote.reloadTagsContainerMaxWidth();
this.appState.noteTags.reloadTagsContainerMaxWidth();
this.application.setPreference(
PrefKey.NotesPanelWidth,
newWidth
@@ -661,7 +661,7 @@ class NotesViewCtrl extends PureViewCtrl<unknown, NotesCtrlState> {
}
onPanelWidthEvent(): void {
this.appState.activeNote.reloadTagsContainerMaxWidth();
this.appState.noteTags.reloadTagsContainerMaxWidth();
}
paginate() {