@@ -78,28 +99,7 @@
-
-
-
-
-
-
-
+
this.contribution.language === o.value)
: null
form.categoryIds = this.categoryIds(this.contribution.categories)
+ form.checkedBlur = this.contribution.checkedBlur
+
+ // console.log(this.contribution.checkedBlur)
+ // console.log(this.contribution)
}
+
return {
form,
formSchema: {
@@ -186,6 +193,7 @@ export default {
},
},
language: { required: true },
+ checkedBlur: { required: false },
},
languageOptions,
id,
@@ -194,9 +202,13 @@ export default {
users: [],
contentMin: 3,
hashtags: [],
- checkedBlur: false,
elem: null,
- elem1: null,
+ checkedBlur: false,
+ }
+ },
+ created() {
+ if (this.contribution && this.contribution.checkedBlur) {
+ this.checkedChange()
}
},
computed: {
@@ -209,21 +221,29 @@ export default {
},
methods: {
checkedChange() {
- this.elem = this.$el.querySelector('img')
- this.elem1 = this.$el.querySelector('img.thumbnail-preview')
+ // console.log( 'checkedChange')
+ // console.log( 'this.checkedBlur old', this.checkedBlur)
+ // console.log( 'THIS', this.$el)
+ // console.log( 'THIS.form', this.form)
+
+ if (this.$el) {
+ this.elem = this.$el.querySelector('img')
+ } else {
+ }
if (this.checkedBlur) {
this.elem.classList.remove('img-blur-in')
this.checkedBlur = false
+ this.form.checkedBlur = false
+ this.form.checkbox = false
} else {
if (this.elem != null) {
- this.elem.classList.add('img-blur-in')
+ this.elem.classList.add('img-blur-in')
}
- if (this.elem1 != null) {
- this.elem1.classList.add('img-blur-in')
- }
-
this.checkedBlur = true
+ this.form.checkedBlur = true
+ this.form.checkbox = true
}
+ // console.log( 'this.checkedBlur new', this.checkedBlur)
},
submit() {
const {
@@ -246,6 +266,7 @@ export default {
language,
image,
imageUpload: teaserImage,
+ checkedBlur: this.form.checkbox,
},
})
.then(({ data }) => {
@@ -307,6 +328,21 @@ export default {
}
+
+
diff --git a/webapp/components/PostCard/PostCard.vue b/webapp/components/PostCard/PostCard.vue
index e65e17102..78f9f9e95 100644
--- a/webapp/components/PostCard/PostCard.vue
+++ b/webapp/components/PostCard/PostCard.vue
@@ -2,8 +2,17 @@
+
+
+
+
+
+