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