mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Add attribute disableHighlightsList to disable Highlights List Widget
This commit is contained in:
parent
e9ece21d20
commit
e7d98206f9
@ -66,6 +66,7 @@ export default class HighlightsListWidget extends RightPanelWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled()
|
||||
&& this.note.type === 'text'
|
||||
&& !this.note.hasLabel('disableHighlightsList')
|
||||
&& !this.noteContext.viewScope.highlightsListTemporarilyHidden
|
||||
&& this.noteContext.viewScope.viewMode === 'default';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user