This commit is contained in:
ogerly 2019-12-02 20:55:58 +01:00
parent a7585721a7
commit fd3accd147
3 changed files with 17 additions and 1 deletions

View File

@ -199,6 +199,7 @@ describe('ContributionForm.vue', () => {
categoryIds: ['cat12'],
imageUpload: null,
image: null,
checkedBlur: false,
},
}
postTitleInput = wrapper.find('.ds-input')

View File

@ -23,7 +23,7 @@
<ds-button
v-if="contribution"
class="bluricon-post"
icon="eye"
icon="ban"
primary
@click.prevent="unBlur"
></ds-button>

View File

@ -18,6 +18,13 @@
primary
@click.prevent="unBlur"
></ds-button>
<ds-button
v-show="blur"
class="bluricon-post"
icon="eye-slash"
primary
@click.prevent="Blur"
></ds-button>
<img
v-show="post.checkedBlur"
:src="post.image | proxyApiUrl"
@ -144,6 +151,7 @@ export default {
ready: false,
title: 'loading',
showNewCommentForm: true,
blur: false,
}
},
watch: {
@ -172,6 +180,13 @@ export default {
unBlur() {
if (this.post.checkedBlur) {
this.post.checkedBlur = false
this.blur = true
}
},
Blur() {
if (!this.post.checkedBlur) {
this.post.checkedBlur = true
this.blur = false
}
},
isAuthor(id) {