Wolfgang Huß 558e964c83
feat(webapp): add reason and call to action on post view page if commenting is disabled (#8958)
Co-authored-by: Ulf Gebhardt <ulf.gebhardt@webcraft-media.de>
2025-10-10 19:21:07 +02:00

39 lines
922 B
Vue

<template>
<ds-space centered margin="xxx-small">
<ds-space margin-bottom="small" />
<ds-heading tag="h4">
{{ $t('contribution.comment.commenting-disabled.blocked-author.reason') }}
</ds-heading>
<ds-text>
{{ $t('contribution.comment.commenting-disabled.blocked-author.call-to-action') }}
</ds-text>
<nuxt-link :to="authorLink">
<base-button icon="arrow-right" filled>
{{
$t('contribution.comment.commenting-disabled.blocked-author.button-label', {
name: author.name,
})
}}
</base-button>
</nuxt-link>
</ds-space>
</template>
<script>
export default {
name: 'CtaUnblockAuthor',
props: {
author: {
type: Object,
require: true,
},
},
computed: {
authorLink() {
const { id, slug } = this.author
return { name: 'profile-id-slug', params: { slug, id } }
},
},
}
</script>