Verifica telegram + email
- convertito la Configurazione newsletter - Protetto le password (al load) che vengono settate in settings
This commit is contained in:
@@ -281,10 +281,12 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
if ((myrec.type === costanti.FieldType.date) || (myrec.type === costanti.FieldType.onlydate)) return myrec.value_date
|
||||
if ((myrec.type === costanti.FieldType.number) || (myrec.type === costanti.FieldType.hours)) return myrec.value_num
|
||||
if (myrec.type === costanti.FieldType.boolean) return myrec.value_bool
|
||||
if (myrec.value_str === undefined) {
|
||||
else if (myrec.type === costanti.FieldType.crypted)
|
||||
return '***********'
|
||||
else if (myrec.value_str === undefined) {
|
||||
return ''
|
||||
} else {
|
||||
myrec.value_str
|
||||
return myrec.value_str
|
||||
}
|
||||
}
|
||||
return ''
|
||||
@@ -1200,6 +1202,20 @@ export const useGlobalStore = defineStore('GlobalStore', {
|
||||
})
|
||||
},
|
||||
|
||||
async sendEmailTest({ previewonly}:{previewonly: any}) {
|
||||
const usertosend = {
|
||||
locale: tools.getLocale(),
|
||||
previewonly
|
||||
}
|
||||
console.log(usertosend)
|
||||
|
||||
return Api.SendReq('/news/testemail', 'POST', usertosend)
|
||||
.then((res) => {
|
||||
return res
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
getArrStrByValueBinary(col: IColGridTable, val: any) {
|
||||
const arr = this.getArrByValueBinary(null, col, val)
|
||||
if (arr.length > 0) return arr.join(' - ')
|
||||
|
||||
Reference in New Issue
Block a user