edit button should get refreshed based on type change

This commit is contained in:
zadam 2022-10-13 23:52:53 +02:00
parent c6d4eb486e
commit a4e99662cb

View file

@ -49,4 +49,10 @@ export default class EditButton extends ButtonWidget {
this.refresh();
}
}
async noteTypeMimeChangedEvent({noteId}) {
if (this.isNote(noteId)) {
await this.refresh();
}
}
}