Lista Friends

This commit is contained in:
paoloar77
2022-01-05 19:11:47 +01:00
parent 0997ef1ec3
commit a1f2ced085
46 changed files with 282 additions and 13236 deletions

View File

@@ -0,0 +1,49 @@
<template>
<div class="q-gutter-sm q-pa-sm q-pb-md">
<div>
<q-btn-toggle
v-model="filter"
class="my-custom-toggle"
no-caps
rounded
unelevated
toggle-color="primary"
color="white"
text-color="primary"
:options="[
{label: $t('mypages.friends') + ' (' + numFriends + ')', value: costanti.FRIENDS},
{label: $t('mypages.request_trust') + ' (' + numAskTrust + ')', value: costanti.ASK_TRUST},
{label: $t('mypages.trusted') + ' (' + numAskTrusted + ')', value: costanti.TRUSTED}
]"
/>
</div>
<q-list bordered>
<q-item v-for="(contact, index) in listfriendsfiltered" :key="index" class="q-my-sm" clickable v-ripple>
<q-item-section avatar>
<q-avatar>
<img :src="getImgUser(contact)" :alt="contact.username">
</q-avatar>
</q-item-section>
<q-item-section>
<q-item-label>{{ contact.name }} {{ contact.surname }}</q-item-label>
<q-item-label caption lines="1">{{ contact.email }}</q-item-label>
</q-item-section>
<q-item-section side>
<q-icon name="chat_bubble" color="green" />
</q-item-section>
</q-item>
</q-list>
</div>
</template>
<script lang="ts" src="./myfriends.ts">
</script>
<style lang="scss" scoped>
@import './myfriends.scss';
</style>