feat(note_icon): disable in note source (closes #1377)

This commit is contained in:
Elian Doran 2025-03-24 22:57:56 +02:00
parent 4ac57c6b46
commit bb1143e582
No known key found for this signature in database

View File

@ -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();
} }