Merge pull request #3 from Bytedefined/patch-2

No friends, no incoming friend requests and no outgoing friend reques…
This commit is contained in:
Troplo 2022-07-31 20:31:36 +10:00 committed by GitHub
commit 7d0141d2bf
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">
<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">
<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">
<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)"