From 5ae6b3c95433f928171a52f817feb92bcffa65ab Mon Sep 17 00:00:00 2001 From: ogerly Date: Fri, 6 Dec 2019 13:16:40 +0100 Subject: [PATCH] fixed contributionForm.vue --- .../ContributionForm/ContributionForm.spec.js | 2 -- .../ContributionForm/ContributionForm.vue | 20 ++++++------------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/webapp/components/ContributionForm/ContributionForm.spec.js b/webapp/components/ContributionForm/ContributionForm.spec.js index 588ac0b0b..9a76863fd 100644 --- a/webapp/components/ContributionForm/ContributionForm.spec.js +++ b/webapp/components/ContributionForm/ContributionForm.spec.js @@ -243,8 +243,6 @@ describe('ContributionForm.vue', () => { expect(mocks.$apollo.mutate).toHaveBeenCalledTimes(1) }) - - it("pushes the user to the post's page", async () => { wrapper.find('form').trigger('submit') await mocks.$apollo.mutate diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index f476ef8c9..c60f68563 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -20,13 +20,12 @@ /> -
- - +
+ +
@@ -41,7 +40,6 @@ v-model="blurImage" @change="form.checkbox = blurImage" /> -
@@ -219,7 +217,6 @@ export default { blurImage: false, } }, - created() {}, mounted() { if (this.contribution && this.contribution.blurImage === true) { this.blurImage = true @@ -234,11 +231,6 @@ export default { }), }, methods: { - unBlur() { - if (this.blurImage) { - this.blurImage = false - } - }, submit() { const { language: { value: language },