edit button should get refreshed based on type change

pull/255/head
zadam 2022-10-13 23:52:53 +07:00
parent c6d4eb486e
commit a4e99662cb
1 changed files with 6 additions and 0 deletions

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