From 35db79b479faeec149f56ccc992023831aa15ba9 Mon Sep 17 00:00:00 2001 From: Surya Paolo Date: Thu, 13 Apr 2023 13:46:53 +0200 Subject: [PATCH] set notif if service your province --- .env.development | 2 +- .env.example.production | 2 +- .env.test.risosrv | 2 +- _ALL_SITES/riso.app/.env.development | 2 +- _ALL_SITES/riso.app/.env.production | 2 +- .../terradellavisione.app/.env.development | 2 +- src/common/shared_vuejs.ts | 13 +++- src/components/CContactUser/CContactUser.vue | 67 ++++--------------- .../CMyActivities/CMyActivities.vue | 4 +- .../CMyCardService/CMyCardService.ts | 20 ++++-- src/components/CMyCircuit/CMyCircuit.vue | 4 +- .../CMyProfileTutorial/CMyProfileTutorial.vue | 2 +- src/statics/lang/it.js | 8 ++- src/views/user/myprofile/myprofile.ts | 15 +++++ src/views/user/myprofile/myprofile.vue | 13 ++++ 15 files changed, 83 insertions(+), 75 deletions(-) diff --git a/.env.development b/.env.development index fce094d0..8a1cb971 100755 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.6.4" +APP_VERSION="0.6.5" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/.env.example.production b/.env.example.production index b30eec37..ebd550a8 100755 --- a/.env.example.production +++ b/.env.example.production @@ -1,4 +1,4 @@ -APP_VERSION="0.6.4" +APP_VERSION="0.6.5" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/.env.test.risosrv b/.env.test.risosrv index 5e6bbea0..4626f3d1 100755 --- a/.env.test.risosrv +++ b/.env.test.risosrv @@ -1,4 +1,4 @@ -APP_VERSION="0.6.4" +APP_VERSION="0.6.5" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/riso.app/.env.development b/_ALL_SITES/riso.app/.env.development index fce094d0..8a1cb971 100755 --- a/_ALL_SITES/riso.app/.env.development +++ b/_ALL_SITES/riso.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.6.4" +APP_VERSION="0.6.5" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL="newfreeplanet" diff --git a/_ALL_SITES/riso.app/.env.production b/_ALL_SITES/riso.app/.env.production index 1a0869f9..57d7f76a 100644 --- a/_ALL_SITES/riso.app/.env.production +++ b/_ALL_SITES/riso.app/.env.production @@ -1,4 +1,4 @@ -APP_VERSION="0.6.4" +APP_VERSION="0.6.5" SERVICE_WORKER_FILE="service-worker.js" APP_ID="13" DIRECTORY_LOCAL=newfreeplanet diff --git a/_ALL_SITES/terradellavisione.app/.env.development b/_ALL_SITES/terradellavisione.app/.env.development index eded4542..62681e50 100755 --- a/_ALL_SITES/terradellavisione.app/.env.development +++ b/_ALL_SITES/terradellavisione.app/.env.development @@ -1,4 +1,4 @@ -APP_VERSION="0.6.4" +APP_VERSION="0.6.5" SERVICE_WORKER_FILE="service-worker.js" APP_ID="14" DIRECTORY_LOCAL="newfreeplanet" diff --git a/src/common/shared_vuejs.ts b/src/common/shared_vuejs.ts index 9ee53cc1..e886a6a7 100755 --- a/src/common/shared_vuejs.ts +++ b/src/common/shared_vuejs.ts @@ -1023,6 +1023,7 @@ export const shared_consts = { NEW_ADV_MY_GROUPS: 8, NEW_ADV_MY_RIS_CIRCUIT: 16, NEW_ADV_SECTOR: 32, + NEW_ADV_YOUR_PROVINCE: 64, }, StatusNotifs: { @@ -1066,6 +1067,7 @@ export const shared_consts = { TYPEDIR_BACHECA: 1, ID_BACHECA_NEW_GOOD: 1, ID_BACHECA_NEW_SERVICE: 2, + ID_BACHECA_NEW_HOSP: 4, TYPEDIR_EVENTS: 2, ID_EVENTS_NEW_REC: 1, @@ -1151,7 +1153,11 @@ export const shared_consts = { { value: 2, // ID_BACHECA_NEW_SERVICE labeltrans: 'notifsid.bacheca_new_service', - } + }, + { + value: 4, // ID_BACHECA_NEW_HOSP + labeltrans: 'notifsid.bacheca_new_hosp', + }, ], }, { @@ -1230,6 +1236,11 @@ export const shared_consts = { labeltrans: 'notifs.warn_city', directory: 1, },*/ + { + value: 64, // NEW_ADV_YOUR_PROVINCE + labeltrans: 'notifs.warn_your_province', + directory: 1, + }, { value: 2, // NEW_ADV_PROVINCE labeltrans: 'notifs.warn_province', diff --git a/src/components/CContactUser/CContactUser.vue b/src/components/CContactUser/CContactUser.vue index 7d03a8da..9cca1554 100755 --- a/src/components/CContactUser/CContactUser.vue +++ b/src/components/CContactUser/CContactUser.vue @@ -1,6 +1,19 @@