mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Disable shouting for own content
This commit is contained in:
parent
33ef91ee08
commit
1423101ca5
@ -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
|
||||
}
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user