mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
feat(note_icon): disable in note source (closes #1377)
This commit is contained in:
parent
4ac57c6b46
commit
bb1143e582
@ -134,6 +134,7 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
|
|||||||
|
|
||||||
async refreshWithNote(note: FNote) {
|
async refreshWithNote(note: FNote) {
|
||||||
this.$icon.removeClass().addClass(`${note.getIcon()} note-icon`);
|
this.$icon.removeClass().addClass(`${note.getIcon()} note-icon`);
|
||||||
|
this.$icon.prop("disabled", !!(this.noteContext?.viewScope?.viewMode !== "default"));
|
||||||
this.dropdown.hide();
|
this.dropdown.hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user