2022-01-12 00:38:31 +01:00
|
|
|
<template>
|
2022-08-04 17:30:01 +02:00
|
|
|
<div v-if="contact">
|
|
|
|
|
<q-item class="q-my-sm" clickable>
|
|
|
|
|
<q-item-section avatar @click="naviga(`/my/` + contact.username)">
|
|
|
|
|
<q-avatar size="60px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-img
|
|
|
|
|
:src="getImgUser(contact)"
|
|
|
|
|
:alt="contact.username"
|
|
|
|
|
img-class="imgprofile"
|
|
|
|
|
height="60px"
|
|
|
|
|
/>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-avatar>
|
|
|
|
|
</q-item-section>
|
2022-01-12 00:38:31 +01:00
|
|
|
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section @click="naviga(`/my/` + contact.username)">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-label v-if="labelextra && labelextra !== contact.username"
|
|
|
|
|
><strong>{{ labelextra }}</strong></q-item-label
|
|
|
|
|
>
|
|
|
|
|
<q-item-label v-if="contact.name"
|
|
|
|
|
><span class="username"
|
|
|
|
|
>{{ contact.name }}
|
|
|
|
|
<span v-if="contact.surname">{{ contact.surname }}</span></span
|
|
|
|
|
>
|
|
|
|
|
({{ contact.username }})
|
2022-12-15 18:09:50 +01:00
|
|
|
</q-item-label>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-label v-else
|
|
|
|
|
><span class="username">{{ contact.username }}</span>
|
|
|
|
|
<span v-if="contact.name"
|
|
|
|
|
>({{ contact.name }} {{ contact.surname }})</span
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-label>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-label v-if="contact.reported" caption lines="1"
|
|
|
|
|
><em style="color: red; font-weight: bold">{{
|
|
|
|
|
$t('db.reporteduser', {
|
|
|
|
|
date_report: tools.getstrDateTimeShort(contact.date_report),
|
|
|
|
|
})
|
|
|
|
|
}}</em></q-item-label
|
|
|
|
|
>
|
2023-03-11 01:29:39 +01:00
|
|
|
<q-item-label v-if="contact.profile" caption lines="3"
|
2023-01-09 15:55:18 +01:00
|
|
|
><em>{{ contact.profile.qualifica }}</em></q-item-label
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-label caption lines="1"></q-item-label>
|
2023-12-06 00:42:02 +01:00
|
|
|
<div v-if="visu === costanti.ASK_TRUST">
|
2024-09-26 02:14:50 +02:00
|
|
|
<span class="text-italic"
|
|
|
|
|
>Reg: {{ tools.getstrDateShort(contact.date_reg) }}</span
|
|
|
|
|
>
|
2023-12-06 00:42:02 +01:00
|
|
|
</div>
|
|
|
|
|
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-label v-if="labelFooter" lines="1"
|
|
|
|
|
><em>{{ labelFooter }}</em></q-item-label
|
|
|
|
|
>
|
2023-06-01 11:40:26 +02:00
|
|
|
<span
|
|
|
|
|
v-if="contact.profile && contact.profile.resid_province"
|
|
|
|
|
class="show_province_title"
|
|
|
|
|
>Prov:
|
|
|
|
|
<span class="show_province">{{
|
|
|
|
|
contact.profile.resid_province
|
|
|
|
|
}}</span></span
|
|
|
|
|
>
|
2022-11-06 13:38:38 +01:00
|
|
|
<q-item-label v-if="contact.account" caption lines="2">
|
2023-12-01 16:14:28 +01:00
|
|
|
<div class="row">
|
|
|
|
|
<CSaldo
|
|
|
|
|
:small="true"
|
|
|
|
|
:account="contact.account"
|
|
|
|
|
:symbol="tools.getSymbolByCircuit(circuit)"
|
|
|
|
|
:color="tools.getColorByCircuit(circuit)"
|
2024-02-17 15:07:29 +01:00
|
|
|
:saldo="contact.account.saldo_pend"
|
2024-09-26 02:14:50 +02:00
|
|
|
:valueextra="
|
|
|
|
|
contact.account.saldo_pend !== contact.account.saldo ? '*' : ''
|
|
|
|
|
"
|
2023-12-01 16:14:28 +01:00
|
|
|
>
|
|
|
|
|
</CSaldo>
|
|
|
|
|
</div>
|
2022-11-06 13:38:38 +01:00
|
|
|
</q-item-label>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2022-01-12 00:38:31 +01:00
|
|
|
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section side v-if="visu === costanti.FRIENDS">
|
|
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-list
|
|
|
|
|
style="min-width: 150px"
|
|
|
|
|
v-if="!userStore.IsHandShakeByMe(contact.username)"
|
|
|
|
|
>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
2023-02-23 17:20:54 +01:00
|
|
|
tools.addToMyHandShake(
|
2023-01-09 15:55:18 +01:00
|
|
|
$q,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="positive" name="fas fa-handshake" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('handshake.accept_handshake')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-list style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REMOVE_FROM_MYFRIENDS,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.remove_from_myfriends')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
<q-list style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
icon="fas fa-ban"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.BLOCK_USER,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="negative" name="fas fa-ban" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.block_user')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
<q-list style="min-width: 150px">
|
|
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REPORT_USER,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="negative" name="fas fa-flag" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.report_user')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section side v-else-if="visu === costanti.REQ_FRIENDS">
|
|
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list v-if="true" style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETFRIEND,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.accept_friend')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
<q-list style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
icon="fas fa-user-minus"
|
2023-03-11 01:01:23 +01:00
|
|
|
outline
|
2023-01-09 15:55:18 +01:00
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REQFRIEND,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
false,
|
|
|
|
|
contact.username,
|
|
|
|
|
false
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.reject_ask_friend')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
2023-12-01 16:14:28 +01:00
|
|
|
<q-item-section side v-else-if="visu === costanti.HANDSHAKE">
|
2023-01-06 15:51:58 +01:00
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list v-if="true" style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETHANDSHAKE,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.accept_handshake')
|
|
|
|
|
}}</q-item-section>
|
2023-01-06 15:51:58 +01:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section side v-else-if="visu === costanti.REQ_ADD_USER_TO_GROUP">
|
|
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list v-if="true" style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="tools.addToMyGroups($q, contact.username, groupname)"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="positive" name="fas fa-user-plus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
{{ $t('groups.accept_group') }}
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
2023-06-01 11:40:26 +02:00
|
|
|
<q-item
|
|
|
|
|
v-if="circuit"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="showAccountInfo = true"
|
|
|
|
|
>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon name="fas fa-info" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('groups.infoaccount')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-list>
|
|
|
|
|
<q-list style="min-width: 200px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="tools.refuseReqGroup($q, contact.username, groupname)"
|
|
|
|
|
>
|
2022-08-08 16:34:30 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-08 16:34:30 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
|
2022-08-30 17:00:32 +02:00
|
|
|
<q-item-section>{{ $t('shared.refuse_ask') }}</q-item-section>
|
2022-08-08 16:34:30 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.cancelReqGroups($q, contact.username, groupname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2022-02-05 23:28:01 +01:00
|
|
|
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('shared.cancel_ask_short')
|
|
|
|
|
}}</q-item-section>
|
2022-08-30 17:00:32 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section
|
|
|
|
|
side
|
|
|
|
|
v-else-if="visu === costanti.REQ_REMOVE_USER_TO_GROUP"
|
|
|
|
|
>
|
2022-09-02 02:25:17 +02:00
|
|
|
<q-item-label v-if="contact.username !== userStore.my.username">
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="!tools.isUserAdminGroup(groupname, contact.username)"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.addtoAdminOfMyGroup($q, contact.username, groupname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-09-02 02:25:17 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="positive" name="fas fa-user-shield" />
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{ $t('groups.addasadmin') }}</q-item-section>
|
|
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
tools.isUserAdminGroup(groupname, contact.username) &&
|
|
|
|
|
tools.iAmTheCreatorOfTheGroup(groupname)
|
|
|
|
|
"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.removeAdminOfMyGroup($q, contact.username, groupname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-09-02 02:25:17 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-times" />
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('groups.remove_as_admin')
|
|
|
|
|
}}</q-item-section>
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
!tools.isUserTheCreatorOfTheGroup(
|
|
|
|
|
groupname,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.removeFromMyGroups($q, contact.username, groupname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-09-02 02:25:17 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('groups.remove_from_mygroups')
|
|
|
|
|
}}</q-item-section>
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.reportUser(
|
|
|
|
|
$q,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-09-02 02:25:17 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-flag" />
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.report_user')
|
|
|
|
|
}}</q-item-section>
|
2022-09-02 02:25:17 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section
|
|
|
|
|
side
|
|
|
|
|
v-else-if="visu === costanti.REQ_ADD_USER_TO_CIRCUIT"
|
|
|
|
|
>
|
2022-08-30 17:00:32 +02:00
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list v-if="true" style="min-width: 150px">
|
2023-03-11 01:01:23 +01:00
|
|
|
<q-item
|
2023-06-05 16:36:06 +02:00
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
dense
|
|
|
|
|
@click="naviga(`/my/` + contact.username)"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="primary" name="fas fa-user" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{ $t('shared.profile') }}</q-item-section>
|
|
|
|
|
</q-item>
|
2023-11-27 11:13:01 +01:00
|
|
|
<q-item
|
2023-03-11 01:01:23 +01:00
|
|
|
v-if="
|
2023-06-01 11:40:26 +02:00
|
|
|
userStore.showButtonSendCoin(contact) &&
|
2023-03-11 01:01:23 +01:00
|
|
|
(contact.username !== userStore.my.username ||
|
|
|
|
|
userStore.hoContiCollettiviDaAmministrare() ||
|
|
|
|
|
userStore.hoContiComunitariDaAmministrare())
|
|
|
|
|
"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
dense
|
2024-10-01 00:46:45 +02:00
|
|
|
@click="naviga(`/my/` + contact.username + '?sendris=0')"
|
2023-03-11 01:01:23 +01:00
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
2024-10-02 03:46:40 +02:00
|
|
|
<q-icon color="positive" name="img: images/1ris_rosso_100.png" />
|
2023-03-11 01:01:23 +01:00
|
|
|
</q-item-section>
|
2023-06-01 11:40:26 +02:00
|
|
|
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
2023-11-27 11:13:01 +01:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.addToMyCircuits($q, contact.username, circuitname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-30 17:00:32 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="positive" name="fas fa-user-plus" />
|
2022-08-30 17:00:32 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
2023-12-06 00:42:02 +01:00
|
|
|
{{ $t('circuit.add_to_circuit') }}
|
2022-08-30 17:00:32 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
2023-06-01 11:40:26 +02:00
|
|
|
<q-item
|
2023-12-01 16:14:28 +01:00
|
|
|
v-if="
|
|
|
|
|
contact.account ? contact.account.fidoConcesso <= 0 : true
|
|
|
|
|
"
|
2023-06-01 11:40:26 +02:00
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.addFidoToMyCircuits($q, contact.username, circuitname)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
2024-10-02 03:46:40 +02:00
|
|
|
<q-icon color="positive" name="img: images/1ris_rosso_100.png" />
|
2023-06-01 11:40:26 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>
|
|
|
|
|
{{ $t('circuit.enablefido') }}
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item
|
|
|
|
|
v-if="circuit"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="showAccountInfo = true"
|
|
|
|
|
>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon name="fas fa-info" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('groups.infoaccount')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
2022-08-30 17:00:32 +02:00
|
|
|
</q-list>
|
|
|
|
|
<q-list style="min-width: 200px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.refuseReqCircuit($q, contact.username, circuitname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-30 17:00:32 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-30 17:00:32 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
|
|
|
|
|
<q-item-section>{{ $t('shared.refuse_ask') }}</q-item-section>
|
|
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.cancelReqCircuit($q, contact.username, circuitname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-30 17:00:32 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-30 17:00:32 +02:00
|
|
|
</q-item-section>
|
|
|
|
|
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('shared.cancel_ask_short')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
!tools.isUserAdminCircuit(circuitname, contact.username)
|
|
|
|
|
"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.addtoAdminOfCircuit($q, contact.username, circuitname)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-09 17:31:49 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="positive" name="fas fa-user-shield" />
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('circuit.addasadmin')
|
|
|
|
|
}}</q-item-section>
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
tools.isUserAdminCircuit(circuitname, contact.username) &&
|
|
|
|
|
tools.iAmTheCreatorOfTheCircuit(circuitname)
|
|
|
|
|
"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.removeAdminOfCircuit(
|
|
|
|
|
$q,
|
|
|
|
|
contact.username,
|
|
|
|
|
circuitname
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-09 17:31:49 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-times" />
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('circuit.remove_as_admin')
|
|
|
|
|
}}</q-item-section>
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
!tools.isUserTheCreatorOfTheCircuit(
|
|
|
|
|
circuitname,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.removeFromMyCircuits(
|
|
|
|
|
$q,
|
|
|
|
|
contact.username,
|
2023-02-02 13:53:09 +01:00
|
|
|
circuitname,
|
2023-02-23 17:20:54 +01:00
|
|
|
''
|
2023-01-09 15:55:18 +01:00
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('circuit.remove_from_mycircuit')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
2023-06-01 11:40:26 +02:00
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section
|
|
|
|
|
side
|
|
|
|
|
v-else-if="visu === costanti.REQ_REMOVE_USER_TO_CIRCUIT"
|
|
|
|
|
>
|
|
|
|
|
<q-item-label v-if="contact.username !== userStore.my.username">
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
2023-06-01 11:40:26 +02:00
|
|
|
v-if="
|
|
|
|
|
!tools.isUserAdminCircuit(circuitname, contact.username)
|
|
|
|
|
"
|
2023-01-09 15:55:18 +01:00
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
2023-06-01 11:40:26 +02:00
|
|
|
tools.addtoAdminOfCircuit($q, contact.username, circuitname)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="positive" name="fas fa-user-shield" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('circuit.addasadmin')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
tools.isUserAdminCircuit(circuitname, contact.username) &&
|
|
|
|
|
tools.iAmTheCreatorOfTheCircuit(circuitname)
|
|
|
|
|
"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.removeAdminOfCircuit(
|
2023-01-09 15:55:18 +01:00
|
|
|
$q,
|
2023-06-01 11:40:26 +02:00
|
|
|
contact.username,
|
|
|
|
|
circuitname
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="negative" name="fas fa-user-times" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('circuit.remove_as_admin')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-if="
|
|
|
|
|
!tools.isUserTheCreatorOfTheCircuit(
|
|
|
|
|
circuitname,
|
2023-01-09 15:55:18 +01:00
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
2023-06-01 11:40:26 +02:00
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.removeFromMyCircuits(
|
|
|
|
|
$q,
|
|
|
|
|
contact.username,
|
|
|
|
|
circuitname,
|
|
|
|
|
''
|
|
|
|
|
)
|
|
|
|
|
"
|
2023-01-09 15:55:18 +01:00
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-06-01 11:40:26 +02:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
2023-06-01 11:40:26 +02:00
|
|
|
$t('circuit.remove_from_mycircuit')
|
2023-01-09 15:55:18 +01:00
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section side v-else-if="visu === costanti.ASK_SENT_FRIENDS">
|
|
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list style="min-width: 150px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
icon="fas fa-user-minus"
|
2023-03-11 01:01:23 +01:00
|
|
|
outline
|
2023-01-09 15:55:18 +01:00
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.CANCEL_REQ_FRIEND,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username,
|
|
|
|
|
''
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.cancel_ask_friend')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section side v-else-if="visu === costanti.ASK_TRUST">
|
|
|
|
|
<q-item-label>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-btn
|
|
|
|
|
color="positive"
|
|
|
|
|
:label="$t('friends.accept_trust')"
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETTRUST,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
true,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
/>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-label>
|
|
|
|
|
<q-item-label>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-btn
|
|
|
|
|
color="negative"
|
|
|
|
|
:label="$t('friends.refuse_trust')"
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETTRUST,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
false,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
/>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section side v-else-if="visu === costanti.TRUSTED">
|
|
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
2023-01-06 15:51:58 +01:00
|
|
|
<q-list style="min-width: 200px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
2023-02-23 17:20:54 +01:00
|
|
|
v-if="
|
|
|
|
|
costanti.ENABLE_FRIENDS &&
|
|
|
|
|
!userStore.IsMyFriendByUsername(contact.username)
|
|
|
|
|
"
|
2023-01-09 15:55:18 +01:00
|
|
|
clickable
|
|
|
|
|
icon="fas fa-user-plus"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REQFRIEND,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
true,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.ask_friend')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
v-if="!userStore.IsHandShakeByMe(contact)"
|
|
|
|
|
clickable
|
|
|
|
|
icon="far fa-handshake"
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETHANDSHAKE,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
true,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('handshake.ask_handshake')
|
|
|
|
|
}}</q-item-section>
|
2023-01-06 15:51:58 +01:00
|
|
|
</q-item>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-list>
|
|
|
|
|
<q-list style="min-width: 200px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
icon="fas fa-user-minus"
|
2023-03-11 01:01:23 +01:00
|
|
|
outline
|
2023-01-09 15:55:18 +01:00
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETTRUST,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
false,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.reject_trust')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-item-section
|
|
|
|
|
side
|
|
|
|
|
v-else-if="visu === costanti.FIND_PEOPLE || visu === costanti.HANDSHAKE"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-label>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-btn
|
|
|
|
|
v-if="contact.username !== userStore.my.username"
|
|
|
|
|
rounded
|
|
|
|
|
dense
|
2023-11-30 01:48:29 +01:00
|
|
|
icon="fas fa-ellipsis-h"
|
|
|
|
|
>
|
|
|
|
|
<!-- </q-btn></q-btn>:icon="
|
2023-01-09 15:55:18 +01:00
|
|
|
userStore.IsMyFriendByUsername(contact.username)
|
|
|
|
|
? `fas fa-ellipsis-h`
|
|
|
|
|
: `fas fa-user`
|
2023-11-30 01:48:29 +01:00
|
|
|
"-->
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-menu>
|
2022-08-09 17:31:49 +02:00
|
|
|
<q-list style="min-width: 200px">
|
2023-11-27 11:13:01 +01:00
|
|
|
<q-item
|
2023-03-11 01:01:23 +01:00
|
|
|
v-if="
|
2023-06-01 11:40:26 +02:00
|
|
|
userStore.showButtonSendCoin(contact) &&
|
2023-03-11 01:01:23 +01:00
|
|
|
(contact.username !== userStore.my.username ||
|
|
|
|
|
userStore.hoContiCollettiviDaAmministrare() ||
|
|
|
|
|
userStore.hoContiComunitariDaAmministrare())
|
|
|
|
|
"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
dense
|
2024-10-01 00:46:45 +02:00
|
|
|
@click="naviga(`/my/` + contact.username + '?sendris=0')"
|
2023-03-11 01:01:23 +01:00
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
2024-10-02 03:46:40 +02:00
|
|
|
<q-icon color="positive" name="img: images/1ris_rosso_100.png" />
|
2023-03-11 01:01:23 +01:00
|
|
|
</q-item-section>
|
2023-06-01 11:40:26 +02:00
|
|
|
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
2023-11-27 11:13:01 +01:00
|
|
|
</q-item>
|
2023-12-01 16:14:28 +01:00
|
|
|
<q-item
|
2023-06-05 16:36:06 +02:00
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
dense
|
|
|
|
|
@click="naviga(`/my/` + contact.username)"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon color="primary" name="fas fa-user" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{ $t('shared.profile') }}</q-item-section>
|
2023-03-11 01:01:23 +01:00
|
|
|
</q-item>
|
2023-06-05 16:36:06 +02:00
|
|
|
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
v-if="
|
2023-01-12 01:03:19 +01:00
|
|
|
costanti.ENABLE_FRIENDS &&
|
2023-01-09 15:55:18 +01:00
|
|
|
!userStore.IsMyFriendByUsername(contact.username) &&
|
|
|
|
|
!userStore.IsAskedFriendByUsername(contact.username)
|
|
|
|
|
"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REQFRIEND,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
true,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="positive" name="fas fa-user-plus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.ask_friend')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
v-else-if="
|
2023-01-12 01:03:19 +01:00
|
|
|
costanti.ENABLE_FRIENDS &&
|
2023-01-09 15:55:18 +01:00
|
|
|
!userStore.IsMyFriendByUsername(contact.username) &&
|
|
|
|
|
userStore.IsAskedFriendByUsername(contact.username)
|
|
|
|
|
"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REQFRIEND,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
false,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.cancel_ask_friend')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
2023-02-23 17:20:54 +01:00
|
|
|
v-else-if="
|
|
|
|
|
costanti.ENABLE_FRIENDS &&
|
|
|
|
|
userStore.IsMyFriendByUsername(contact.username)
|
|
|
|
|
"
|
2023-01-09 15:55:18 +01:00
|
|
|
style="min-width: 200px"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REMOVE_FROM_MYFRIENDS,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-04 17:30:01 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-user-minus" />
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.remove_from_myfriends')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
2023-01-06 15:51:58 +01:00
|
|
|
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
v-if="!userStore.IsHandShakeByMe(contact)"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETHANDSHAKE,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
true,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2023-01-06 15:51:58 +01:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="positive" name="far fa-handshake" />
|
2023-01-06 15:51:58 +01:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('handshake.ask_handshake')
|
|
|
|
|
}}</q-item-section>
|
2023-01-06 15:51:58 +01:00
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
v-else
|
|
|
|
|
style="min-width: 200px"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.REMOVE_FROM_MYHANDSHAKE,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
'',
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2023-01-06 15:51:58 +01:00
|
|
|
<q-item-section avatar>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-icon color="negative" name="fas fa-handshake-slash" />
|
2023-01-06 15:51:58 +01:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('handshake.remove_from_myhandshake')
|
|
|
|
|
}}</q-item-section>
|
2023-01-06 15:51:58 +01:00
|
|
|
</q-item>
|
2023-06-01 11:40:26 +02:00
|
|
|
<q-item
|
|
|
|
|
v-if="circuit"
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="showAccountInfo = true"
|
|
|
|
|
>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-item-section avatar>
|
|
|
|
|
<q-icon name="fas fa-info" />
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('groups.infoaccount')
|
|
|
|
|
}}</q-item-section>
|
|
|
|
|
</q-item>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
tools.reportUser(
|
|
|
|
|
$q,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
2022-08-09 17:31:49 +02:00
|
|
|
<q-item-section avatar>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-icon color="negative" name="fas fa-flag" />
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-item-section>
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.report_user')
|
|
|
|
|
}}</q-item-section>
|
2022-08-09 17:31:49 +02:00
|
|
|
</q-item>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
<q-item-section side v-else-if="visu === costanti.REJECTED">
|
|
|
|
|
<q-item-label>
|
|
|
|
|
<q-btn rounded icon="fas fa-ellipsis-h">
|
|
|
|
|
<q-menu>
|
|
|
|
|
<q-list style="min-width: 200px">
|
2023-01-09 15:55:18 +01:00
|
|
|
<q-item
|
|
|
|
|
clickable
|
|
|
|
|
icon="fas fa-user-minus"
|
2023-03-11 01:01:23 +01:00
|
|
|
outline
|
2023-01-09 15:55:18 +01:00
|
|
|
v-close-popup
|
|
|
|
|
@click="
|
|
|
|
|
setCmd(
|
|
|
|
|
$q,
|
|
|
|
|
shared_consts.FRIENDSCMD.SETTRUST,
|
|
|
|
|
userStore.my.username,
|
|
|
|
|
true,
|
|
|
|
|
contact.username
|
|
|
|
|
)
|
|
|
|
|
"
|
|
|
|
|
>
|
|
|
|
|
<q-item-section>{{
|
|
|
|
|
$t('friends.accept_trust')
|
|
|
|
|
}}</q-item-section>
|
2022-08-04 17:30:01 +02:00
|
|
|
</q-item>
|
|
|
|
|
</q-list>
|
|
|
|
|
</q-menu>
|
|
|
|
|
</q-btn>
|
|
|
|
|
</q-item-label>
|
|
|
|
|
</q-item-section>
|
|
|
|
|
</q-item>
|
|
|
|
|
</div>
|
2023-06-05 16:36:06 +02:00
|
|
|
<div v-if="contact">
|
2022-09-16 17:39:28 +02:00
|
|
|
<CSendCoins
|
2023-06-05 16:36:06 +02:00
|
|
|
v-if="showsendCoinTo"
|
2022-09-16 17:39:28 +02:00
|
|
|
:showprop="showsendCoinTo"
|
|
|
|
|
:to_user="contact"
|
2022-09-22 11:06:04 +02:00
|
|
|
:circuitname="circuitname"
|
2023-06-05 16:36:06 +02:00
|
|
|
@close="showsendCoin(false)"
|
2022-09-16 17:39:28 +02:00
|
|
|
>
|
|
|
|
|
</CSendCoins>
|
|
|
|
|
</div>
|
2023-02-23 17:20:54 +01:00
|
|
|
<q-dialog v-model="showAccountInfo" full-height full-width>
|
|
|
|
|
<q-card v-if="circuit">
|
|
|
|
|
<q-toolbar class="bg-primary text-white">
|
|
|
|
|
<q-toolbar-title class="text-h7">
|
|
|
|
|
{{ tools.getNomeUtenteByRecUser(contact) }}
|
|
|
|
|
</q-toolbar-title>
|
|
|
|
|
<q-btn flat round color="white" icon="close" v-close-popup></q-btn>
|
|
|
|
|
</q-toolbar>
|
|
|
|
|
<CUserInfoAccount
|
|
|
|
|
:user="contact"
|
|
|
|
|
:circuitname="circuitname"
|
|
|
|
|
:admin="tools.iAmAdminCircuit(circuitname)"
|
|
|
|
|
/>
|
|
|
|
|
</q-card>
|
|
|
|
|
</q-dialog>
|
2022-01-12 00:38:31 +01:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" src="./CMyUser.ts">
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2022-08-04 17:30:01 +02:00
|
|
|
@import './CMyUser.scss';
|
2022-01-12 00:38:31 +01:00
|
|
|
</style>
|