mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 09:55:50 +00:00
Nuxt-link makes showAuthorPopover unneccessary
This commit is contained in:
parent
6beabf7eda
commit
07731ca548
@ -29,7 +29,6 @@
|
||||
<hc-user
|
||||
:user="post.author"
|
||||
:trunc="35"
|
||||
:show-user-popover="showUserPopover"
|
||||
/>
|
||||
</no-ssr>
|
||||
</ds-space>
|
||||
@ -78,10 +77,6 @@ export default {
|
||||
post: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
showUserPopover: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
@ -18,7 +18,6 @@
|
||||
<dropdown
|
||||
v-else
|
||||
:class="{'disabled-content': user.disabled}"
|
||||
:disabled="disabled || !showUserPopover"
|
||||
placement="top-start"
|
||||
offset="0"
|
||||
>
|
||||
@ -57,11 +56,6 @@
|
||||
slot="popover"
|
||||
>
|
||||
<div style="min-width: 250px">
|
||||
<!--<ds-avatar
|
||||
:image="user.avatar"
|
||||
:name="user.name || 'Anonymus'"
|
||||
class="profile-avatar"
|
||||
size="90px" />-->
|
||||
<hc-badges
|
||||
v-if="user.badges && user.badges.length"
|
||||
:badges="user.badges"
|
||||
@ -145,8 +139,7 @@ export default {
|
||||
},
|
||||
props: {
|
||||
user: { type: Object, default: null },
|
||||
trunc: { type: Number, default: null },
|
||||
showUserPopover: { type: Boolean, default: true }
|
||||
trunc: { type: Number, default: null }
|
||||
},
|
||||
computed: {
|
||||
...mapGetters({
|
||||
@ -159,9 +152,6 @@ export default {
|
||||
let count = Number(this.user.followedByCount) || 0
|
||||
return count
|
||||
},
|
||||
disabled() {
|
||||
return this.user && this.user.disabled
|
||||
},
|
||||
userLink() {
|
||||
const { slug } = this.user
|
||||
if (!slug) return ''
|
||||
|
||||
@ -276,7 +276,6 @@
|
||||
>
|
||||
<hc-post-card
|
||||
:post="post"
|
||||
:show-author-popover="false"
|
||||
/>
|
||||
</ds-flex-item>
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user