more refactoring ...

This commit is contained in:
zadam
2020-01-12 20:15:05 +01:00
parent 9d81bf030d
commit bf7541bfb9
13 changed files with 260 additions and 248 deletions

View File

@@ -23,7 +23,9 @@ class AppContext {
const $leftPane = $("#left-pane");
this.tabRow = new TabRowWidget(this);
$("#tab-row-container").append(this.tabRow.render());
const contents = this.tabRow.render();
$("#global-menu-wrapper").after(contents);
this.noteTreeWidget = new NoteTreeWidget(this);
@@ -234,6 +236,10 @@ class AppContext {
this.tabsChangedTaskId = setTimeout(() => this.saveOpenTabs(), 1000);
}
async activateTab(tabContext) {
return this.tabRow.activateTab(tabContext.$tab[0]);
}
newTabListener() {
this.openEmptyTab();
}