feat(note_language): allow removing language tag

This commit is contained in:
Elian Doran
2025-03-04 18:35:42 +02:00
parent 598586f735
commit bb42b5fb19
3 changed files with 26 additions and 19 deletions

View File

@@ -76,9 +76,7 @@ export default class NoteLanguageWidget extends NoteContextAwareWidget {
return;
}
if (languageId) {
attributes.setLabel(this.note.noteId, "language", languageId);
}
attributes.setAttribute(this.note, "label", "language", languageId);
}
async refreshWithNote(note: FNote) {