mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
specs ok
This commit is contained in:
parent
a7585721a7
commit
fd3accd147
@ -199,6 +199,7 @@ describe('ContributionForm.vue', () => {
|
||||
categoryIds: ['cat12'],
|
||||
imageUpload: null,
|
||||
image: null,
|
||||
checkedBlur: false,
|
||||
},
|
||||
}
|
||||
postTitleInput = wrapper.find('.ds-input')
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<ds-button
|
||||
v-if="contribution"
|
||||
class="bluricon-post"
|
||||
icon="eye"
|
||||
icon="ban"
|
||||
primary
|
||||
@click.prevent="unBlur"
|
||||
></ds-button>
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user