mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
fixes in closing tabs and elsewhere
This commit is contained in:
@@ -12,13 +12,12 @@ import hoistedNoteService from "./hoisted_note.js";
|
||||
class TabContext extends Component {
|
||||
/**
|
||||
* @param {AppContext} appContext
|
||||
* @param {object} state
|
||||
* @param {string|null} tabId
|
||||
*/
|
||||
constructor(appContext, state = {}) {
|
||||
constructor(appContext, tabId = null) {
|
||||
super(appContext);
|
||||
|
||||
this.tabId = state.tabId || utils.randomString(4);
|
||||
this.state = state;
|
||||
this.tabId = tabId || utils.randomString(4);
|
||||
|
||||
this.trigger('newTabOpened', {tabId: this.tabId});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user