From a30a7ac8b028cea3ab9f06f00c0c142e439b0f7d Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 12 Dec 2019 09:44:45 +0100 Subject: [PATCH] mounted removed and everything put on blurImage --- .../components/ContributionForm/ContributionForm.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index 8fdc1d65c..cdbb5701b 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -29,7 +29,6 @@ type="checkbox" id="blur-img" v-model="blurImage" - @change="form.checkbox = blurImage" /> {{ $t('contribution.shockingPicture-text') }} @@ -201,12 +200,7 @@ export default { contentMin: 3, hashtags: [], elem: null, - blurImage: false, - } - }, - mounted() { - if (this.contribution && this.contribution.blurImage === true) { - this.blurImage = true + blurImage: form.checkbox, } }, computed: { @@ -240,7 +234,7 @@ export default { language, image, imageUpload: teaserImage, - blurImage: this.form.checkbox, + blurImage: this.blurImage, imageAspectRatio, }, })