Disable shouting for own content

This commit is contained in:
Grzegorz Leoniec 2019-03-05 14:18:06 +01:00
parent 33ef91ee08
commit 1423101ca5
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
2 changed files with 3 additions and 2 deletions

View File

@ -31,12 +31,12 @@ export default {
props: {
count: { type: Number, default: 0 },
postId: { type: String, default: null },
isShouted: { type: Boolean, default: false }
isShouted: { type: Boolean, default: false },
disabled: { type: Boolean, default: false }
},
data() {
return {
loading: false,
disabled: false,
shoutedCount: this.count,
shouted: false
}

View File

@ -28,6 +28,7 @@
<ds-space margin="xx-large" />
<hc-shout-button
v-if="post.author"
:disabled="isAuthor(post.author.id)"
:count="post.shoutedCount"
:is-shouted="post.shoutedByCurrentUser"
:post-id="post.id"