Skip to content

Commit bb1143e

Browse files
committed
feat(note_icon): disable in note source (closes #1377)
1 parent 4ac57c6 commit bb1143e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/public/app/widgets/note_icon.ts

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export default class NoteIconWidget extends NoteContextAwareWidget {
134134

135135
async refreshWithNote(note: FNote) {
136136
this.$icon.removeClass().addClass(`${note.getIcon()} note-icon`);
137+
this.$icon.prop("disabled", !!(this.noteContext?.viewScope?.viewMode !== "default"));
137138
this.dropdown.hide();
138139
}
139140

0 commit comments

Comments
 (0)