From ff3d01f2c764deb5346981720de7fb4ac6731356 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 1 Sep 2024 15:51:01 +0300 Subject: [PATCH] client: Implement basic refresh for mind map --- src/public/app/widgets/type_widgets/mind_map.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/public/app/widgets/type_widgets/mind_map.js b/src/public/app/widgets/type_widgets/mind_map.js index 4a7e98125..ee12415d5 100644 --- a/src/public/app/widgets/type_widgets/mind_map.js +++ b/src/public/app/widgets/type_widgets/mind_map.js @@ -47,6 +47,16 @@ export default class MindMapWidget extends TypeWidget { }); } + async doRefresh(note) { + if (!this.mind) { + return; + } + + const blob = await note.getBlob(); + const content = blob.getJsonContent(); + this.mind.refresh(content); + } + async getData() { const mind = this.mind; if (!mind) {