- 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

@@ -414,7 +414,7 @@ export const costanti = {
TABLES_ARRAY: ['circuits'],
TABLES_USERNAME_DATE: ['friends', 'friendsandme'],
TABLES_IMG_USERNAME: ['friends', 'friendsandme'],
TABLES_WITH_STR_TUTTI: ['lista_editori'],
TABLES_WITH_STR_TUTTI: ['lista_editori', 'lista_referenti'],
FILTER_SEP: '_',
FILTER_TUTTI_STR: '[Tutti]',

View File

@@ -188,7 +188,7 @@ export const colTableCatalogList = [
name: 'referenti',
label_trans: 'cataloglist.referenti',
fieldtype: costanti.FieldType.multiselect,
jointable: 'lista_editori',
jointable: 'lista_referenti',
}),
AddCol({
name: 'idPageAssigned',
@@ -5210,6 +5210,13 @@ export const fieldsTable = {
colkey: 'username',
collabel: 'name',
},
{
value: 'lista_referenti',
label: 'Referenti',
columns: colTableUsersGeneric,
colkey: 'username',
collabel: 'name',
},
{
value: 'mygroups',
label: 'Organizzazioni',

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 !