From ddb3bdf72334869c2e390b006364eeb9a29b31d3 Mon Sep 17 00:00:00 2001 From: gzbender Date: Thu, 13 Sep 2018 13:06:24 +0500 Subject: [PATCH] LIL-645 --- web/src/components/blocks/BlockAdd.vue | 36 +++++++++----------------- 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/web/src/components/blocks/BlockAdd.vue b/web/src/components/blocks/BlockAdd.vue index 0090a8df..6720b6da 100644 --- a/web/src/components/blocks/BlockAdd.vue +++ b/web/src/components/blocks/BlockAdd.vue @@ -69,50 +69,38 @@ addBlockText() { this.add({ type: 'text', - data: { - title: '', - text: '', - } + title: '', + text: '', }) }, addBlockImage() { this.add({ type: 'image', - data: { - title: '', - image_id: null, - image_url: null, - } + title: '', + img: {}, }) }, addBlockImageText() { this.add({ type: 'image-text', - data: { - title: '', - text: '', - image_id: null, - image_url: null, - } + title: '', + img: {}, + text: '', }) }, addBlockImages() { this.add({ type: 'images', - data: { - title: '', - text: '', - images: [], - } + title: '', + text: '', + gallery_images: [], }) }, addBlockVideo() { this.add({ type: 'video', - data: { - title: '', - video_url: '', - } + title: '', + video_url: '', }) }, }