Commit 120b6ae2 authored by Jérome Perrin's avatar Jérome Perrin

Set the name of the scenario when loading a file

parent 8412f56f
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
return promiseReadAsText(file); return promiseReadAsText(file);
}) })
.push(function (json) { .push(function (json) {
json_data = json; var data = JSON.parse(json);
data.general.name = name;
json_data = JSON.stringify(data);
return createDocument(gadget, name); return createDocument(gadget, name);
}) })
.push(function (jio_document) { .push(function (jio_document) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment