- 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:
@@ -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 !
|
||||
|
||||
Reference in New Issue
Block a user