client: Implement basic refresh for mind map

This commit is contained in:
Elian Doran 2024-09-01 15:51:01 +03:00
parent 10df00d62f
commit ff3d01f2c7
No known key found for this signature in database

View File

@ -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) {