more refactoring ...

This commit is contained in:
zadam
2020-01-12 23:03:55 +01:00
parent bf7541bfb9
commit 17e2627a34
6 changed files with 27 additions and 16 deletions

View File

@@ -138,6 +138,8 @@ class TabContext {
// after loading new note make sure editor is scrolled to the top
this.getComponent().scrollToTop();
appContext.trigger('activeNoteChanged');
}
async show() {
@@ -175,9 +177,6 @@ class TabContext {
this.$noteDetailComponents.hide();
this.$noteTitle.show(); // this can be hidden by empty detail
this.$noteTitle.removeAttr("readonly"); // this can be set by protected session service
this.getComponent().show();
await this.getComponent().render();
}