mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
client: Implement basic refresh for mind map
This commit is contained in:
parent
10df00d62f
commit
ff3d01f2c7
@ -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() {
|
async getData() {
|
||||||
const mind = this.mind;
|
const mind = this.mind;
|
||||||
if (!mind) {
|
if (!mind) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user