mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 03:46:37 +01:00
standard widget => collapsible widget
This commit is contained in:
@@ -69,7 +69,10 @@ class TabContext extends Component {
|
||||
protectedSessionHolder.touchProtectedSession();
|
||||
}
|
||||
|
||||
this.trigger('tabNoteSwitched', {tabId: this.tabId});
|
||||
this.trigger('tabNoteSwitched', {
|
||||
tabId: this.tabId,
|
||||
notePath: this.notePath
|
||||
});
|
||||
this.trigger('openTabsChanged');
|
||||
}
|
||||
|
||||
@@ -114,11 +117,14 @@ class TabContext extends Component {
|
||||
}
|
||||
|
||||
noteDeletedListener({noteId}) {
|
||||
if (this.note && noteId === this.note.noteId) {
|
||||
this.note = null;
|
||||
if (this.noteId === noteId) {
|
||||
this.noteId = null;
|
||||
this.notePath = null;
|
||||
|
||||
this.trigger('tabNoteSwitched', {tabId: this.tabId});
|
||||
this.trigger('tabNoteSwitched', {
|
||||
tabId: this.tabId,
|
||||
notePath: this.notePath
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user