moved tab management to app context

This commit is contained in:
zadam
2020-01-12 12:30:30 +01:00
parent 61474defff
commit 5e11840137
19 changed files with 235 additions and 231 deletions

View File

@@ -11,6 +11,7 @@ import protectedSessionService from "./protected_session.js";
import optionsService from "./options.js";
import linkService from "./link.js";
import Sidebar from "./sidebar.js";
import appContext from "./app_context.js";
const $tabContentsContainer = $("#note-tab-container");
@@ -360,7 +361,7 @@ class TabContext {
if (this.isNoteChanged) {
await this.saveNote();
noteDetailService.refreshTabs(this.tabId, this.note.noteId);
appContext.refreshTabs(this.tabId, this.note.noteId);
}
}