- newsletter: prende la lista utenti (flag news_on)
- Abilita a Tutti la Newsletter news_on - isCommerciale - JobsInProgress - PCB: Corretto Totali che era a zero
This commit is contained in:
@@ -16,7 +16,8 @@ import type {
|
||||
IOptCatalogo,
|
||||
IProduct,
|
||||
IProductInfo,
|
||||
IVariazione
|
||||
IVariazione,
|
||||
IDestNewsletter
|
||||
} from '@model';
|
||||
import {
|
||||
ICity, IMySkill,
|
||||
@@ -420,6 +421,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === toolsext.TABNEWSLETTER) ris = state.newstosent
|
||||
else if (table === toolsext.TABGALLERY) ris = state.gallery
|
||||
else if (table === toolsext.TABTEMPLEMAIL) ris = state.templemail
|
||||
else if (table === toolsext.TABDESTNEWSLETTER) ris = state.destnewsletter
|
||||
else if (table === toolsext.TABOPZEMAIL) ris = state.opzemail
|
||||
else if (table === toolsext.TABMAILINGLIST) ris = state.mailinglist
|
||||
else if (table === toolsext.TABMYPAGE) ris = state.mypage
|
||||
@@ -532,6 +534,10 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
const myrec = mystate.templemail.find((rec) => rec._id === templid)
|
||||
return (!!myrec) ? myrec.subject! : ''
|
||||
},
|
||||
getdestnewsletterbyId: (mystate: IGlobalState) => (id: string): string => {
|
||||
const myrec = mystate.destnewsletter.find((rec: IDestNewsletter) => rec._id === id)
|
||||
return (!!myrec) ? myrec.descr! : ''
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
@@ -2213,6 +2219,7 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
else if (table === toolsext.TABCALDATE) myarr = this.getArrDateEvent()
|
||||
else if (table === toolsext.TABCALALLDATE) myarr = this.getArrAllDateEvent()
|
||||
else if (table === toolsext.TABTYPEHOSP) myarr = shared_consts.TypeHosps
|
||||
else if (table === 'tipodest') myarr = shared_consts.DESTNEWSLETTER_ARRAY
|
||||
else if (table === 'versions') myarr = shared_consts.VERSIONI_PRODOTTO
|
||||
else if (table === toolsext.TABPEOPLE) myarr = shared_consts.People
|
||||
else if (table === toolsext.TABTYPEACCOM) myarr = shared_consts.TypeAccom
|
||||
|
||||
Reference in New Issue
Block a user