my-mind icon indicating copy to clipboard operation
my-mind copied to clipboard

"No" icon does not display when reloading json saved map

Open clodion opened this issue 3 years ago • 4 comments

Hi Ondras,

When reloading the map saved under the "native" format, the red cross icon "No" does not display whereas the "Yes" (a green checked icon) displays very well

Here is my code to do it : let json = format.from(txt); this.loadDone(json);

clodion avatar Jan 02 '22 16:01 clodion

This link: https://my-mind.github.io/?url=examples%2Ffeatures.mymind shows loading a previously saved native/json map. The "No" icons seem to be loaded/displayed just ok.

Can you be more specific with your report? Point me to an URL where the problem exists? Or explaining in more detail where is the code you use located?

ondras avatar Jan 02 '22 16:01 ondras

In fact it seems to be in the json saved file, the status is saved with 'true' but does not saves for 'false', here the saved map in json (native format)

the json file : { "root": { "id": "xgcsujhn", "text": "Ma carte mentale", "notes": "", "value": 12, "layout": "graph-bottom", "children": [ { "id": "loyqlhur", "text": "child here ici<br>", "notes": "", "side": "right", "children": [ { "id": "axxwmkjn", "text": "Test<br>", "notes": "", "textColor": "#8c1957" }, { "id": "kpmmsfmq", "text": "a new child<br>", "notes": "" } ] }, { "id": "gfwxmfhg", "text": "test la<br>", "notes": "", "side": "left", "color": "#ce2480", "children": [ { "id": "yauwpyqw", "text": "Test here<br>", "notes": "", "status": true } ] } ] } } and the corresponding map image

clodion avatar Jan 02 '22 16:01 clodion

A-ha, okay. Will investigate.

ondras avatar Jan 02 '22 18:01 ondras

Should be fixed now. Thanks @clodion for reporting!

ondras avatar Jan 04 '22 19:01 ondras