No friends, no incoming friend requests and no outgoing friend requests messages

This commit is contained in:
bytedefined 2022-07-31 18:19:46 +08:00 committed by GitHub
parent c6b18cb768
commit 73dd0e4f60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,13 @@
</v-toolbar> </v-toolbar>
<v-card color="card" elevation="0"> <v-card color="card" elevation="0">
<v-list color="card"> <v-list color="card">
<v-list-item v-if="computePendingIncoming.length === 0 || !computePendingIncoming">
<v-list-item-content>
<v-list-item-title>
You currently do not have any incoming friend requests.
</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item <v-list-item
v-for="friend in computePendingIncoming" v-for="friend in computePendingIncoming"
:key="friend.id" :key="friend.id"
@ -128,6 +135,13 @@
</v-toolbar> </v-toolbar>
<v-card color="card" elevation="0"> <v-card color="card" elevation="0">
<v-list color="card"> <v-list color="card">
<v-list-item v-if="computePendingOutgoing.length === 0 || !computePendingOutgoing">
<v-list-item-content>
<v-list-item-title>
You currently do not have any outgoing friend requests.
</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item <v-list-item
v-for="friend in computePendingOutgoing" v-for="friend in computePendingOutgoing"
:key="friend.id" :key="friend.id"
@ -167,6 +181,13 @@
</v-toolbar> </v-toolbar>
<v-card color="card" elevation="0"> <v-card color="card" elevation="0">
<v-list color="card"> <v-list color="card">
<v-list-item v-if="computeAccepted.length === 0 || !computeAccepted">
<v-list-item-content>
<v-list-item-title>
You currently do not have any friends.
</v-list-item-title>
</v-list-item-content>
</v-list-item>
<v-list-item v-for="friend in computeAccepted" :key="friend.id"> <v-list-item v-for="friend in computeAccepted" :key="friend.id">
<v-list-item-avatar <v-list-item-avatar
@click="userProfile(friend.user2)" @click="userProfile(friend.user2)"