mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
refactoring of layout finished
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user