Merge branch '6068-on-create-edit-group-page-have-additional-hint' of github.com:Ocelot-Social-Community/Ocelot-Social into 6068-on-create-edit-group-page-have-additional-hint

# Conflicts:
#	webapp/components/ContributionForm/ContributionForm.vue
This commit is contained in:
Wolfgang Huß 2023-03-16 15:56:40 +01:00
parent 424f5c4172
commit 04b6dc4407

View File

@ -68,7 +68,7 @@
<ds-flex-item width="3.5" style="margin-right: 16px; margin-bottom: 6px">
<!-- eslint-disable vue/no-v-text-v-html-on-component -->
<ds-text
v-if="groupId"
v-if="showGroupHint"
v-html="$t('contribution.visibleOnlyForMembersOfGroup', { name: groupName })"
/>
<!-- eslint-enable vue/no-v-text-v-html-on-component -->
@ -171,6 +171,9 @@ export default {
groupId() {
return this.group && this.group.id
},
showGroupHint() {
return this.grouupId && ['closed', 'hidden'].includes(this.group.groupType)
},
groupName() {
return this.group && this.group.name
},