- 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:
Surya Paolo
2025-07-01 12:59:39 +02:00
parent 4b65400d50
commit 9e95fe622b
29 changed files with 138 additions and 84 deletions

View File

@@ -10824,7 +10824,7 @@ export const tools = {
{
visible: !this.isUtente(),
label: 'Editore',
table: 'lista_editori',
table: 'lista_referenti',
key: 'referenti',
type: costanti.FieldType.select,
value: this.isUtente()
@@ -11123,14 +11123,18 @@ export const tools = {
},
getColorWithTransparency(color: string): string {
const hex = color.slice(1); // Rimuove il simbolo "#" dal colore
const r = parseInt(hex.substring(0, 2), 16);
const g = parseInt(hex.substring(2, 4), 16);
const b = parseInt(hex.substring(4, 6), 16);
const a = parseInt(hex.substring(6, 8), 16) / 255; // Trasformiamo la trasparenza in formato decimale
if (color) {
const hex = color.slice(1); // Rimuove il simbolo "#" dal colore
const r = parseInt(hex.substring(0, 2), 16);
const g = parseInt(hex.substring(2, 4), 16);
const b = parseInt(hex.substring(4, 6), 16);
const a = parseInt(hex.substring(6, 8), 16) / 255; // Trasformiamo la trasparenza in formato decimale
// Restituisce il colore con trasparenza in formato rgba
return `rgba(${r}, ${g}, ${b}, ${a})`;
// Restituisce il colore con trasparenza in formato rgba
return `rgba(${r}, ${g}, ${b}, ${a})`;
} else {
return ''
}
},
// FINE !