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