mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-14 16:59:51 -06: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