PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
<template>
|
||||
<div v-if="contact">
|
||||
<q-item class="q-my-sm" clickable>
|
||||
<q-item-section avatar @click="actionType === costanti.ACTIONTYPE.SEND_RIS ? naviga(`/my/` + contact.username + '?sr=0') : naviga(`/my/` + contact.username)">
|
||||
<q-item-section
|
||||
avatar
|
||||
@click="
|
||||
actionType === costanti.ACTIONTYPE.SEND_RIS
|
||||
? naviga(`/my/` + contact.username + '?sr=0')
|
||||
: naviga(`/my/` + contact.username)
|
||||
"
|
||||
>
|
||||
<q-avatar size="60px">
|
||||
<q-img
|
||||
:src="getImgUser(contact)"
|
||||
@@ -12,7 +19,13 @@
|
||||
</q-avatar>
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section @click="actionType === costanti.ACTIONTYPE.SEND_RIS ? naviga(`/my/` + contact.username + '?sr=0') : naviga(`/my/` + contact.username)">
|
||||
<q-item-section
|
||||
@click="
|
||||
actionType === costanti.ACTIONTYPE.SEND_RIS
|
||||
? naviga(`/my/` + contact.username + '?sr=0')
|
||||
: naviga(`/my/` + contact.username)
|
||||
"
|
||||
>
|
||||
<q-item-label v-if="labelextra && labelextra !== contact.username"
|
||||
><strong>{{ labelextra }}</strong></q-item-label
|
||||
>
|
||||
@@ -31,19 +44,22 @@
|
||||
</q-item-label>
|
||||
<q-item-label v-if="contact.reported" caption lines="1"
|
||||
><em style="color: red; font-weight: bold">{{
|
||||
$t('db.reporteduser', {
|
||||
$t("db.reporteduser", {
|
||||
date_report: tools.getstrDateTimeShort(contact.date_report),
|
||||
})
|
||||
}}</em></q-item-label
|
||||
>
|
||||
<q-item-label v-if="contact.profile" caption lines="3"
|
||||
>
|
||||
<q-item-label v-if="contact.profile" caption lines="3">
|
||||
<em>{{ contact.profile.qualifica }}</em>
|
||||
<span v-if="tools.isFacil() && contact.profile.note"><span v-if="contact.profile.qualifica"><br></span><em style="color: blue;">Note: {{ contact.profile.note }}</em></span>
|
||||
<span v-if="tools.isFacil() && contact.profile.da_contattare"><br><em style="color: red;">Da Contattare</em></span>
|
||||
<span v-if="tools.isFacil() && contact.profile.note"
|
||||
><span v-if="contact.profile.qualifica"><br /></span
|
||||
><em style="color: blue">Note: {{ contact.profile.note }}</em></span
|
||||
>
|
||||
<span v-if="tools.isFacil() && contact.profile.da_contattare"
|
||||
><br /><em style="color: red">Da Contattare</em></span
|
||||
>
|
||||
<!--<span v-if="tools.isBitActive(contact.perm, shared_consts.Permissions.Facilitatore.value)"><br><em style="color: blue;">⭐️ Facilitatore RISO</em></span>-->
|
||||
</q-item-label
|
||||
>
|
||||
</q-item-label>
|
||||
<q-item-label caption lines="1"></q-item-label>
|
||||
<div v-if="visu === costanti.ASK_TRUST">
|
||||
<span class="text-italic"
|
||||
@@ -102,7 +118,7 @@
|
||||
<q-icon color="positive" name="fas fa-handshake" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('handshake.accept_handshake')
|
||||
$t("handshake.accept_handshake")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -124,7 +140,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.remove_from_myfriends')
|
||||
$t("friends.remove_from_myfriends")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -147,7 +163,7 @@
|
||||
<q-icon color="negative" name="fas fa-ban" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.block_user')
|
||||
$t("friends.block_user")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -169,7 +185,7 @@
|
||||
<q-icon color="negative" name="fas fa-flag" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.report_user')
|
||||
$t("friends.report_user")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -196,7 +212,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.accept_friend')
|
||||
$t("friends.accept_friend")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -218,7 +234,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.reject_ask_friend')
|
||||
$t("friends.reject_ask_friend")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -245,7 +261,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.accept_handshake')
|
||||
$t("friends.accept_handshake")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -267,7 +283,7 @@
|
||||
<q-icon color="positive" name="fas fa-user-plus" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('groups.accept_group') }}
|
||||
{{ $t("groups.accept_group") }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -280,7 +296,7 @@
|
||||
<q-icon name="fas fa-info" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('groups.infoaccount')
|
||||
$t("groups.infoaccount")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -294,7 +310,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>{{ $t('shared.refuse_ask') }}</q-item-section>
|
||||
<q-item-section>{{ $t("shared.refuse_ask") }}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
@@ -308,7 +324,7 @@
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>{{
|
||||
$t('shared.cancel_ask_short')
|
||||
$t("shared.cancel_ask_short")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -326,7 +342,9 @@
|
||||
<q-list style="min-width: 150px">
|
||||
<q-item
|
||||
clickable
|
||||
v-if="!tools.isUserAdminGroup(groupname, contact.username, true)"
|
||||
v-if="
|
||||
!tools.isUserAdminGroup(groupname, contact.username, true)
|
||||
"
|
||||
v-close-popup
|
||||
@click="
|
||||
tools.addtoAdminOfMyGroup($q, contact.username, groupname)
|
||||
@@ -335,7 +353,7 @@
|
||||
<q-item-section avatar>
|
||||
<q-icon color="positive" name="fas fa-user-shield" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{ $t('groups.addasadmin') }}</q-item-section>
|
||||
<q-item-section>{{ $t("groups.addasadmin") }}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
@@ -352,7 +370,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-times" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('groups.remove_as_admin')
|
||||
$t("groups.remove_as_admin")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -372,7 +390,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('groups.remove_from_mygroups')
|
||||
$t("groups.remove_from_mygroups")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -390,7 +408,7 @@
|
||||
<q-icon color="negative" name="fas fa-flag" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.report_user')
|
||||
$t("friends.report_user")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -415,7 +433,7 @@
|
||||
<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-section>{{ $t("shared.profile") }}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="
|
||||
@@ -432,10 +450,10 @@
|
||||
<q-item-section avatar>
|
||||
<q-icon
|
||||
color="positive"
|
||||
name="img: images/1ris_rosso_100.png"
|
||||
name="img: /images/1ris_rosso_100.png"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>{{ $t('circuit.sendcoins') }}</q-item-section>
|
||||
<q-item-section>{{ $t("circuit.sendcoins") }}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
@@ -448,7 +466,7 @@
|
||||
<q-icon color="positive" name="fas fa-user-plus" />
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('circuit.add_to_circuit') }}
|
||||
{{ $t("circuit.add_to_circuit") }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -464,11 +482,11 @@
|
||||
<q-item-section avatar>
|
||||
<q-icon
|
||||
color="positive"
|
||||
name="img: images/1ris_rosso_100.png"
|
||||
name="img: /images/1ris_rosso_100.png"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>
|
||||
{{ $t('circuit.enablefido') }}
|
||||
{{ $t("circuit.enablefido") }}
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -481,7 +499,7 @@
|
||||
<q-icon name="fas fa-info" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('groups.infoaccount')
|
||||
$t("groups.infoaccount")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -497,7 +515,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>{{ $t('shared.refuse_ask') }}</q-item-section>
|
||||
<q-item-section>{{ $t("shared.refuse_ask") }}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
@@ -511,13 +529,17 @@
|
||||
</q-item-section>
|
||||
|
||||
<q-item-section>{{
|
||||
$t('shared.cancel_ask_short')
|
||||
$t("shared.cancel_ask_short")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
v-if="
|
||||
!tools.isUserAdminCircuit(circuitname, contact.username, true)
|
||||
!tools.isUserAdminCircuit(
|
||||
circuitname,
|
||||
contact.username,
|
||||
true
|
||||
)
|
||||
"
|
||||
v-close-popup
|
||||
@click="
|
||||
@@ -528,14 +550,17 @@
|
||||
<q-icon color="positive" name="fas fa-user-shield" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.addasadmin')
|
||||
$t("circuit.addasadmin")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
v-if="
|
||||
tools.isUserAdminCircuit(circuitname, contact.username, true) &&
|
||||
tools.iAmTheCreatorOfTheCircuit(circuitname)
|
||||
tools.isUserAdminCircuit(
|
||||
circuitname,
|
||||
contact.username,
|
||||
true
|
||||
) && tools.iAmTheCreatorOfTheCircuit(circuitname)
|
||||
"
|
||||
v-close-popup
|
||||
@click="
|
||||
@@ -550,7 +575,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-times" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.remove_as_admin')
|
||||
$t("circuit.remove_as_admin")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -575,7 +600,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.remove_from_mycircuit')
|
||||
$t("circuit.remove_from_mycircuit")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -594,7 +619,11 @@
|
||||
<q-item
|
||||
clickable
|
||||
v-if="
|
||||
!tools.isUserAdminCircuit(circuitname, contact.username, true)
|
||||
!tools.isUserAdminCircuit(
|
||||
circuitname,
|
||||
contact.username,
|
||||
true
|
||||
)
|
||||
"
|
||||
v-close-popup
|
||||
@click="
|
||||
@@ -605,14 +634,17 @@
|
||||
<q-icon color="positive" name="fas fa-user-shield" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.addasadmin')
|
||||
$t("circuit.addasadmin")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
clickable
|
||||
v-if="
|
||||
tools.isUserAdminCircuit(circuitname, contact.username, true) &&
|
||||
tools.iAmTheCreatorOfTheCircuit(circuitname)
|
||||
tools.isUserAdminCircuit(
|
||||
circuitname,
|
||||
contact.username,
|
||||
true
|
||||
) && tools.iAmTheCreatorOfTheCircuit(circuitname)
|
||||
"
|
||||
v-close-popup
|
||||
@click="
|
||||
@@ -627,7 +659,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-times" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.remove_as_admin')
|
||||
$t("circuit.remove_as_admin")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -652,7 +684,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.remove_from_mycircuit')
|
||||
$t("circuit.remove_from_mycircuit")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -682,7 +714,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.cancel_ask_friend')
|
||||
$t("friends.cancel_ask_friend")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -746,7 +778,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.ask_friend')
|
||||
$t("friends.ask_friend")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -765,7 +797,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('handshake.ask_handshake')
|
||||
$t("handshake.ask_handshake")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -786,7 +818,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.reject_trust')
|
||||
$t("friends.reject_trust")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -799,10 +831,7 @@
|
||||
v-else-if="visu === costanti.FIND_PEOPLE || visu === costanti.HANDSHAKE"
|
||||
>
|
||||
<div v-if="actionType === costanti.ACTIONTYPE.SEND_RIS">
|
||||
<q-icon
|
||||
name="img: images/1ris_rosso_100.png"
|
||||
:size="`lg`"
|
||||
/>
|
||||
<q-icon name="img: /images/1ris_rosso_100.png" :size="`lg`" />
|
||||
</div>
|
||||
<div v-else>
|
||||
<q-item-label>
|
||||
@@ -834,11 +863,11 @@
|
||||
<q-item-section avatar>
|
||||
<q-icon
|
||||
color="positive"
|
||||
name="img: images/1ris_rosso_100.png"
|
||||
name="img: /images/1ris_rosso_100.png"
|
||||
/>
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('circuit.sendcoins')
|
||||
$t("circuit.sendcoins")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -850,7 +879,7 @@
|
||||
<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-section>{{ $t("shared.profile") }}</q-item-section>
|
||||
</q-item>
|
||||
|
||||
<q-item
|
||||
@@ -875,7 +904,7 @@
|
||||
<q-icon color="positive" name="fas fa-user-plus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.ask_friend')
|
||||
$t("friends.ask_friend")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -900,7 +929,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.cancel_ask_friend')
|
||||
$t("friends.cancel_ask_friend")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -925,7 +954,7 @@
|
||||
<q-icon color="negative" name="fas fa-user-minus" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.remove_from_myfriends')
|
||||
$t("friends.remove_from_myfriends")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
|
||||
@@ -947,7 +976,7 @@
|
||||
<q-icon color="positive" name="far fa-handshake" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('handshake.ask_handshake')
|
||||
$t("handshake.ask_handshake")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -969,7 +998,7 @@
|
||||
<q-icon color="negative" name="fas fa-handshake-slash" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('handshake.remove_from_myhandshake')
|
||||
$t("handshake.remove_from_myhandshake")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -982,7 +1011,7 @@
|
||||
<q-icon name="fas fa-info" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('groups.infoaccount')
|
||||
$t("groups.infoaccount")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
@@ -1000,7 +1029,7 @@
|
||||
<q-icon color="negative" name="fas fa-flag" />
|
||||
</q-item-section>
|
||||
<q-item-section>{{
|
||||
$t('friends.report_user')
|
||||
$t("friends.report_user")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -1030,7 +1059,7 @@
|
||||
"
|
||||
>
|
||||
<q-item-section>{{
|
||||
$t('friends.accept_trust')
|
||||
$t("friends.accept_trust")
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
@@ -1071,5 +1100,5 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CMyUser.scss';
|
||||
@import "./CMyUser.scss";
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user