- catalogo

- corretto logica del RefreshToken che non richiedeva il nuovo token, quindi scadeva tutte le volte, richiedendo sempre l'accesso !
This commit is contained in:
Surya Paolo
2025-01-07 17:17:08 +01:00
parent ce86dd51a8
commit 3734762a8b
72 changed files with 2112 additions and 3592650 deletions

View File

@@ -493,8 +493,10 @@ export default defineComponent({
productTypes: [],
excludeproductTypes: [],
editore: [],
argomenti: [],
author: '',
sort: costanti.SORT_PUBDATE,
sort_field: '',
sort_dir: 0,
arrProdottiSpeciali: [],
}
@@ -783,10 +785,22 @@ export default defineComponent({
if (arrschede) {
arrschede.forEach((recscheda: ISchedaSingola) => {
arr.push({ label: recscheda.scheda!.name, value: recscheda.scheda!._id })
let pagename = ''
if (recscheda.scheda) {
if (recscheda.idPageOrig) {
const page = globalStore.getPageById(recscheda.idPageOrig)
pagename = page ? page.title! : ''
}
if (pagename)
pagename = '[Pag: ' + pagename + '] '
const mylabel = pagename + (recscheda.scheda ? recscheda.scheda!.name : '')
arr.push({ label: mylabel, value: recscheda.scheda!._id })
}
});
}
return arr
}
@@ -903,7 +917,7 @@ export default defineComponent({
}
function toggleDebug() {
myel.value.catalogo!.indebug = !myel.value.catalogo!.indebug
myel.value.catalogo!.indebug = !myel.value.catalogo!.indebug
}
const preparePDF = async () => {