mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
complete toc/highlightslist improvements
This commit is contained in:
@@ -25,7 +25,6 @@ export default class ShowHighlightsListWidgetButton extends OnClickButtonWidget
|
||||
}
|
||||
|
||||
async refreshWithNote(note) {
|
||||
console.log(222)
|
||||
this.toggleInt(this.noteContext.viewScope.highlightsListTemporarilyHidden);
|
||||
}
|
||||
async reEvaluateHighlightsListWidgetVisibilityEvent({ noteId }) {
|
||||
|
||||
@@ -25,11 +25,9 @@ export default class ShowTocWidgetButton extends OnClickButtonWidget {
|
||||
}
|
||||
|
||||
async refreshWithNote(note) {
|
||||
console.log(213)
|
||||
this.toggleInt(this.noteContext.viewScope.tocTemporarilyHidden);
|
||||
}
|
||||
async reEvaluateTocWidgetVisibilityEvent({ noteId }) {
|
||||
console.log("noteId", noteId)
|
||||
if (noteId === this.noteId) {
|
||||
await this.refresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user