Skip to content

Build your personal knowledge base with Trilium Notes

edit button should get refreshed based on type change

zadama4e99662cb85
diff --git a/src/public/app/widgets/buttons/edit_button.js b/src/public/app/widgets/buttons/edit_button.js
index 9b458fcca1..b723cdb99c 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();
+ }
+ }
}