- 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:
@@ -117,7 +117,7 @@ body {
|
||||
height: calc(380 * var(--scalecatalogy) * 1px);
|
||||
line-height: 130%;
|
||||
|
||||
font-weight: bold;
|
||||
font-weight: normal;
|
||||
|
||||
padding: 8px;
|
||||
border-radius: 20px;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
v-if="
|
||||
ispageCatalogata &&
|
||||
!optcatalogo.showOnlyCatalogoPDF &&
|
||||
(tools.isEditor() || tools.isCommerciale()) &&
|
||||
(tools.isCollaboratore()) &&
|
||||
myCatalog?.referenti?.length > 0
|
||||
"
|
||||
class="text-h7 text-center text-red q-ma-sm"
|
||||
@@ -183,7 +183,7 @@
|
||||
</q-inner-loading>
|
||||
|
||||
<q-btn
|
||||
v-if="!showListaFiltrata && (tools.isEditor() || tools.isCommerciale())"
|
||||
v-if="!showListaFiltrata && (tools.isCollaboratore())"
|
||||
rounded
|
||||
icon="fas fa-redo"
|
||||
label="Rigenera Lista"
|
||||
|
||||
Reference in New Issue
Block a user