Abilitazione del BOT

This commit is contained in:
Surya Paolo
2023-12-17 16:20:50 +01:00
parent fa544bc30c
commit a941592c21
6 changed files with 65 additions and 4 deletions

View File

@@ -1654,6 +1654,8 @@ export const colTableSites = [
AddCol({ name: 'telegram_bot_name', label_trans: 'sites.telegram_bot_name', fieldtype: costanti.FieldType.string }),
AddCol({ name: 'telegram_support_chat', label_trans: 'sites.telegram_support_chat', fieldtype: costanti.FieldType.string }),
AddCol({ name: 'telegram_key_test', label_trans: 'sites.telegram_key_test', fieldtype: costanti.FieldType.string }),
AddCol({ name: 'load_process_telegram_test', label_trans: 'sites.load_process_telegram_test', fieldtype: costanti.FieldType.boolean }),
AddCol({ name: 'load_process_telegramt', label_trans: 'sites.load_process_telegram', fieldtype: costanti.FieldType.boolean}),
AddCol({
name: 'telegram_bot_name_test',
label_trans: 'sites.telegram_bot_name_test',

View File

@@ -238,8 +238,10 @@ export const useProducts = defineStore('Products', {
let ris = null
console.log('Ottieni Prodotti')
ris = await Api.SendReq('/products', 'POST', { userId: userStore.my._id })
.then((res) => {
console.log('Prodotti scaricati')
if (res.data.products) {
this.products = res.data.products
} else {