- Sistemato i Referenti (e non Editori), quando crei un nuovo Catalogo ti imposta la proprietà a te, ma chiunque Collaboratore potrebbe cmq modificartelo.
This commit is contained in:
@@ -1123,6 +1123,12 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
async function lista_Aggiornata() {
|
||||
myCatalog.value.data_lista_updated = tools.getDateNow();
|
||||
myCatalog.value.username_lista_updated = userStore.my.username;
|
||||
await saveCatalog();
|
||||
}
|
||||
|
||||
async function saveCatalog() {
|
||||
const catalog = myCatalog.value;
|
||||
const mydata = {
|
||||
@@ -1519,6 +1525,8 @@ export default defineComponent({
|
||||
const productIds = myarr.map((product) => product._id);
|
||||
|
||||
let mydata = {
|
||||
data_lista_updated: tools.getDateNow(),
|
||||
username_lista_updated: userStore.my.username,
|
||||
lista_prodotti: productIds,
|
||||
};
|
||||
|
||||
@@ -1535,6 +1543,8 @@ export default defineComponent({
|
||||
if (ricarica) {
|
||||
generatearrProdToViewSorted(true, false);
|
||||
}
|
||||
|
||||
// lista_Aggiornata();
|
||||
}
|
||||
|
||||
/*function getProducts() {
|
||||
@@ -2509,7 +2519,6 @@ export default defineComponent({
|
||||
|
||||
catalog.data_generato = tools.getDateNow();
|
||||
}
|
||||
|
||||
} else {
|
||||
strout.value = JSON.stringify(ris, null, 2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user