diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts
index ade0698f..e59e8513 100755
--- a/src/common/shared_vuejs.ts
+++ b/src/common/shared_vuejs.ts
@@ -136,6 +136,7 @@ export const shared_consts = {
CHECKIFISLOGGED: 170,
INFO_VERSION: 180,
BOTT_CONDIVIDI: 190,
+ BOTT_CHAT_TERRITORIALE: 192,
BUTTON: 195,
PRESENTAZIONE: 200,
MYACTIVITIES: 205,
@@ -1625,6 +1626,10 @@ export const shared_consts = {
value: 190,
label: 'Bottone Condividi',
},
+ {
+ value: 192,
+ label: 'Bottone Chat Territoriale',
+ },
{
value: 200,
label: 'Presentazione',
diff --git a/src/components/CMyElem/CMyElem.vue b/src/components/CMyElem/CMyElem.vue
index 9bce0534..8b7567bb 100755
--- a/src/components/CMyElem/CMyElem.vue
+++ b/src/components/CMyElem/CMyElem.vue
@@ -508,6 +508,25 @@
+
+
+ Bottone Chat Territoriale
+
+
+
+
+
+
Msg di Controllo Verifica Email
diff --git a/src/store/Modules/tools.ts b/src/store/Modules/tools.ts
index e6a03a73..52cfae36 100644
--- a/src/store/Modules/tools.ts
+++ b/src/store/Modules/tools.ts
@@ -8317,7 +8317,7 @@ export const tools = {
mystr = unitrec ? (short ? unitrec.short : unitrec.label) : ''
return mystr
},
-
+
getWeightByUnit(unit: number, short: boolean, weight: number | undefined) {
let unitrec = shared_consts.Units_Of_Measure_ListBox.find((rec: any) => rec.value === unit)
@@ -8447,8 +8447,29 @@ export const tools = {
openUrl(url: string) {
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 !