mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
bookmarking should be available for all note types
This commit is contained in:
@@ -64,7 +64,7 @@ export default class BasicPropertiesWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
return this.note && (this.note.type === 'text' || this.note.type === 'code' || this.note.type === 'mermaid');
|
||||
return this.note;
|
||||
}
|
||||
|
||||
getTitle() {
|
||||
@@ -84,4 +84,10 @@ export default class BasicPropertiesWidget extends NoteContextAwareWidget {
|
||||
this.$widget.find(".editability-select-container").append(this.editabilitySelectWidget.render());
|
||||
this.$widget.find(".bookmark-switch-container").append(this.bookmarkSwitchWidget.render());
|
||||
}
|
||||
|
||||
async refreshWithNote(note) {
|
||||
await super.refreshWithNote(note);
|
||||
|
||||
this.$widget.find(".editability-select-container").toggle(this.note && ['text', 'code'].includes(this.note.type))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user