mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
bookmarking should be available for all note types
This commit is contained in:
parent
fa40a5f496
commit
eecba725b0
@ -5,9 +5,9 @@ const DROPDOWN_TPL = `
|
||||
<div class="bookmark-folder-widget">
|
||||
<style>
|
||||
.bookmark-folder-widget {
|
||||
min-width: 200px;
|
||||
min-width: 400px;
|
||||
max-height: 500px;
|
||||
padding: 10px 20px 10px 20px;
|
||||
padding: 7px 15px 0 15px;
|
||||
font-size: 110%;
|
||||
overflow: auto;
|
||||
}
|
||||
@ -54,8 +54,6 @@ export default class BookmarkFolderWidget extends RightDropdownButtonWidget {
|
||||
|
||||
this.$parentNote = this.$dropdownContent.find('.parent-note');
|
||||
this.$childrenNotes = this.$dropdownContent.find('.children-notes');
|
||||
|
||||
// this.$dropdownContent.on("click", "a", () => this.hideDropdown());
|
||||
}
|
||||
|
||||
async dropdownShown() {
|
||||
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user