refactoring of layout finished

This commit is contained in:
zadam
2020-02-27 10:03:14 +01:00
parent 637010577b
commit 368d0c55da
13 changed files with 82 additions and 85 deletions

View File

@@ -9,15 +9,12 @@ import hoistedNoteService from "./hoisted_note.js";
class TabContext extends Component {
/**
* @param {Component} parent
* @param {string|null} tabId
*/
constructor(parent, tabId = null) {
super(parent);
constructor(tabId = null) {
super();
this.tabId = tabId || utils.randomString(4);
this.triggerEvent('newTabOpened', {tabId: this.tabId});
}
async setNote(inputNotePath) {