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

Moved deleting and resizing in to data

parent f92d0fe9
Pipeline #52476 passed with stage
in 44 seconds
......@@ -54,8 +54,6 @@ const maxBlocks = 3;
export default {
name: 'Home',
deleting: false,
resizing: false,
created() {
this.loadLayout("isaac");
......@@ -83,7 +81,9 @@ export default {
prevWinWidth: 1000,
draggedBlock: null,
activePreview: null,
dragEnabled: true
dragEnabled: true,
deleting: false,
resizing: false
}
},
......@@ -467,6 +467,8 @@ export default {
const request = sendServerRequest(type, payload);
request.onload = () => {
const response = request.response;
// Resetting layout to get Object.assign to work
this.layout = [];
Object.assign(this.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