Commit d4a72aa8 authored by Anders B. Clausen's avatar Anders B. Clausen
Browse files

Now only pushing and pulling layout

parent 225e6788
......@@ -438,7 +438,7 @@ export default {
saveLayout(id) {
const type = "save"
const payload = "id=" + id + "&" + "data=" + JSON.stringify(this.$data);
const payload = "id=" + id + "&" + "data=" + JSON.stringify(this.data.layout);
const request = sendServerRequest(type, payload);
request.onload = () => {
......@@ -454,7 +454,7 @@ export default {
const request = sendServerRequest(type, payload);
request.onload = () => {
const response = request.response;
Object.assign(this.$data, JSON.parse(response));
Object.assign(this.data.layout, JSON.parse(response));
}
},
},
......
Supports Markdown
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