-Bottone Chat Territoriale Circuito
This commit is contained in:
@@ -136,6 +136,7 @@ export const shared_consts = {
|
|||||||
CHECKIFISLOGGED: 170,
|
CHECKIFISLOGGED: 170,
|
||||||
INFO_VERSION: 180,
|
INFO_VERSION: 180,
|
||||||
BOTT_CONDIVIDI: 190,
|
BOTT_CONDIVIDI: 190,
|
||||||
|
BOTT_CHAT_TERRITORIALE: 192,
|
||||||
BUTTON: 195,
|
BUTTON: 195,
|
||||||
PRESENTAZIONE: 200,
|
PRESENTAZIONE: 200,
|
||||||
MYACTIVITIES: 205,
|
MYACTIVITIES: 205,
|
||||||
@@ -1625,6 +1626,10 @@ export const shared_consts = {
|
|||||||
value: 190,
|
value: 190,
|
||||||
label: 'Bottone Condividi',
|
label: 'Bottone Condividi',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: 192,
|
||||||
|
label: 'Bottone Chat Territoriale',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: 200,
|
value: 200,
|
||||||
label: 'Presentazione',
|
label: 'Presentazione',
|
||||||
|
|||||||
@@ -508,6 +508,25 @@
|
|||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.BOTT_CHAT_TERRITORIALE">
|
||||||
|
<div v-if="editOn" class="elemEdit">
|
||||||
|
Bottone Chat Territoriale
|
||||||
|
</div>
|
||||||
|
<div class="row justify-evenly items-center q-pa-sm q-ma-sm">
|
||||||
|
<q-btn
|
||||||
|
v-if="tools.getLinkChatTerritoriale()"
|
||||||
|
icon="fab fa-telegram"
|
||||||
|
color="blue"
|
||||||
|
type="a"
|
||||||
|
size="md"
|
||||||
|
rounded
|
||||||
|
:label="$t('circuit.link_chat', { name: tools.getNomeCircuitoChatTerritoriale() })"
|
||||||
|
:href="tools.getLinkChatTerritoriale()"
|
||||||
|
target="__blank"
|
||||||
|
>
|
||||||
|
</q-btn>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CHECK_EMAIL">
|
<div v-else-if="myel.type === shared_consts.ELEMTYPE.CHECK_EMAIL">
|
||||||
<div v-if="editOn" class="elemEdit">
|
<div v-if="editOn" class="elemEdit">
|
||||||
Msg di Controllo Verifica Email
|
Msg di Controllo Verifica Email
|
||||||
|
|||||||
@@ -8448,7 +8448,28 @@ export const tools = {
|
|||||||
|
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
getCircuitYourProvince() {
|
||||||
|
|
||||||
|
const circuitStore = useCircuitStore()
|
||||||
|
const userStore = useUserStore()
|
||||||
|
try {
|
||||||
|
return circuitStore.getCircuitByProvinceAndCard(userStore.my.profile.resid_province, userStore.my.profile.resid_card)
|
||||||
|
} catch (e) {
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
getLinkChatTerritoriale() {
|
||||||
|
const circ = this.getCircuitYourProvince()
|
||||||
|
return circ ? circ.link_group : ''
|
||||||
|
},
|
||||||
|
|
||||||
|
getNomeCircuitoChatTerritoriale() {
|
||||||
|
const circ = this.getCircuitYourProvince()
|
||||||
|
return circ ? circ.name : ''
|
||||||
|
},
|
||||||
|
|
||||||
// FINE !
|
// FINE !
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user