fix vue warnings
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
0abba5ecd4
commit
e25f13582e
|
@ -48,8 +48,9 @@
|
||||||
>
|
>
|
||||||
{{ $t("Loading comments…") }}
|
{{ $t("Loading comments…") }}
|
||||||
</p>
|
</p>
|
||||||
<transition name="comment-empty-list" mode="out-in" v-else>
|
<transition-group name="comment-empty-list" mode="out-in" v-else>
|
||||||
<transition-group
|
<transition-group
|
||||||
|
key="list"
|
||||||
name="comment-list"
|
name="comment-list"
|
||||||
v-if="comments.length"
|
v-if="comments.length"
|
||||||
class="comment-list"
|
class="comment-list"
|
||||||
|
@ -65,10 +66,10 @@
|
||||||
@delete-comment="deleteComment"
|
@delete-comment="deleteComment"
|
||||||
/>
|
/>
|
||||||
</transition-group>
|
</transition-group>
|
||||||
<div class="no-comments">
|
<div class="no-comments" key="no-comments">
|
||||||
<span>{{ $t("No comments yet") }}</span>
|
<span>{{ $t("No comments yet") }}</span>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition-group>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,11 @@
|
||||||
{{ $t("You have been removed from this group's members.") }}
|
{{ $t("You have been removed from this group's members.") }}
|
||||||
</b-message>
|
</b-message>
|
||||||
<b-message
|
<b-message
|
||||||
v-if="isCurrentActorAGroupMember && isCurrentActorARecentMember"
|
v-if="
|
||||||
|
isCurrentActorAGroupMember &&
|
||||||
|
isCurrentActorARecentMember &&
|
||||||
|
isCurrentActorOnADifferentDomainThanGroup
|
||||||
|
"
|
||||||
type="is-info"
|
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[] {
|
get members(): IMember[] {
|
||||||
return this.group.members.elements.filter(
|
return this.group.members.elements.filter(
|
||||||
(member) =>
|
(member) =>
|
||||||
|
|
Loading…
Reference in a new issue