- Aggiornati margini.

- Cataloghi: Export ed Import di una pagine ed i suoi elementi !
This commit is contained in:
Surya Paolo
2024-12-13 18:10:04 +01:00
parent 29c59588c7
commit 8baf1e99f0
39 changed files with 752 additions and 141 deletions

View File

@@ -1926,6 +1926,10 @@ export const useUserStore = defineStore('UserStore', {
},
async importToServerCmd($q: any, t: any, cmd: number, data: any, recorddaimportare: boolean = false) {
$q.loading.show({
message: 'Importazione in corso, attendere ...'
})
return Api.SendReq('/admin/import', 'POST', { cmd, data })
.then((res: any) => {
if (res) {
@@ -1953,7 +1957,9 @@ export const useUserStore = defineStore('UserStore', {
}
}
$q.loading.hide()
}).catch((error) => {
$q.loading.hide()
tools.showNegativeNotif($q, t('db.recfailed'))
return {}
})