mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
port toc widget button
This commit is contained in:
@@ -329,7 +329,7 @@ export default class TocWidget extends RightPanelWidget {
|
||||
appContext.triggerEvent("reEvaluateTocWidgetVisibility", { noteId: this.noteId });
|
||||
}
|
||||
|
||||
async showTocWidgetEvent({ noteId }: EventData<"showToc">) {
|
||||
async showTocWidgetEvent({ noteId }: EventData<"showTocWidget">) {
|
||||
if (this.noteId === noteId) {
|
||||
await this.refresh();
|
||||
this.triggerCommand("reEvaluateRightPaneVisibility");
|
||||
|
||||
Reference in New Issue
Block a user