From a4e99662cb85f48dd414e270b4e89653b47f8b5a Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 13 Oct 2022 23:52:53 +0200 Subject: [PATCH] edit button should get refreshed based on type change --- src/public/app/widgets/buttons/edit_button.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/public/app/widgets/buttons/edit_button.js b/src/public/app/widgets/buttons/edit_button.js index 9b458fcca..b723cdb99 100644 --- a/src/public/app/widgets/buttons/edit_button.js +++ b/src/public/app/widgets/buttons/edit_button.js @@ -49,4 +49,10 @@ export default class EditButton extends ButtonWidget { this.refresh(); } } + + async noteTypeMimeChangedEvent({noteId}) { + if (this.isNote(noteId)) { + await this.refresh(); + } + } }