fix vue warnings

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-04-30 08:03:30 +02:00
parent 0abba5ecd4
commit e25f13582e
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
2 changed files with 13 additions and 4 deletions

View File

@ -48,8 +48,9 @@
>
{{ $t("Loading comments…") }}
</p>
<transition name="comment-empty-list" mode="out-in" v-else>
<transition-group name="comment-empty-list" mode="out-in" v-else>
<transition-group
key="list"
name="comment-list"
v-if="comments.length"
class="comment-list"
@ -65,10 +66,10 @@
@delete-comment="deleteComment"
/>
</transition-group>
<div class="no-comments">
<div class="no-comments" key="no-comments">
<span>{{ $t("No comments yet") }}</span>
</div>
</transition>
</transition-group>
</div>
</template>

View File

@ -31,7 +31,11 @@
{{ $t("You have been removed from this group's members.") }}
</b-message>
<b-message
v-if="isCurrentActorAGroupMember && isCurrentActorARecentMember"
v-if="
isCurrentActorAGroupMember &&
isCurrentActorARecentMember &&
isCurrentActorOnADifferentDomainThanGroup
"
type="is-info"
>
{{
@ -735,6 +739,10 @@ export default class Group extends mixins(GroupMixin) {
);
}
get isCurrentActorOnADifferentDomainThanGroup(): boolean {
return this.group.domain !== null;
}
get members(): IMember[] {
return this.group.members.elements.filter(
(member) =>