From 9fed0952044f45a1b3d4c14befb183fccb7c9f4b Mon Sep 17 00:00:00 2001
From: DevEnv nis2-agile
Date: Mon, 15 Jun 2026 15:59:31 +0200
Subject: [PATCH] [FIX] A3: stringhe JS residue Asset -> bene/beni nelle pagine
Inventario (titoli modale + notifiche)
Co-Authored-By: Claude Opus 4.8 (1M context)
---
public/assets-bi.html | 18 +++++++++---------
public/assets.html | 18 +++++++++---------
2 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/public/assets-bi.html b/public/assets-bi.html
index 507bb15..9d1350b 100644
--- a/public/assets-bi.html
+++ b/public/assets-bi.html
@@ -565,7 +565,7 @@
let body = `
Metodologia di scoring rilevanza NIS2 (requisito GV.OC-04). Soglia rilevanza: ≥${grid.threshold} punti.
- Il punteggio aggiorna automaticamente anche la criticita dell'asset.
`;
+ Il punteggio aggiorna automaticamente anche la criticita del bene.
`;
for (const [key, def] of Object.entries(grid.grid)) {
const sel = prev && prev[key] ? prev[key].value : '';
@@ -634,7 +634,7 @@
try {
const result = await api.getAsset(id);
if (!result.success || !result.data) {
- showNotification('Asset non trovato.', 'error');
+ showNotification('Bene non trovato.', 'error');
return;
}
@@ -719,17 +719,17 @@
`
});
} catch (e) {
- showNotification('Errore nel caricamento dell\'asset.', 'error');
+ showNotification('Errore nel caricamento del bene.', 'error');
}
}
// ── Create Asset Modal ──────────────────────────────────
function showCreateAssetModal() {
- showAssetModal('Nuovo Asset', {}, async function(data) {
+ showAssetModal('Nuovo bene', {}, async function(data) {
try {
const result = await api.createAsset(data);
if (result.success) {
- showNotification('Asset registrato con successo!', 'success');
+ showNotification('Bene registrato con successo!', 'success');
closeModal();
loadAssets();
} else {
@@ -746,15 +746,15 @@
try {
const result = await api.getAsset(id);
if (!result.success || !result.data) {
- showNotification('Asset non trovato.', 'error');
+ showNotification('Bene non trovato.', 'error');
return;
}
- showAssetModal('Modifica Asset', result.data, async function(data) {
+ showAssetModal('Modifica bene', result.data, async function(data) {
try {
const res = await api.updateAsset(id, data);
if (res.success) {
- showNotification('Asset aggiornato con successo!', 'success');
+ showNotification('Bene aggiornato con successo!', 'success');
closeModal();
loadAssets();
} else {
@@ -910,7 +910,7 @@ function openImportModal(){
Core ERP,software,critical,financial,false,8,true
Web Portal,service,high,personal,true,3,true">
`;
- showModal('Importa Asset', body, {
+ showModal('Importa beni', body, {
size:'lg',
footer:`
`
diff --git a/public/assets.html b/public/assets.html
index 507bb15..9d1350b 100644
--- a/public/assets.html
+++ b/public/assets.html
@@ -565,7 +565,7 @@
let body = `
Metodologia di scoring rilevanza NIS2 (requisito GV.OC-04). Soglia rilevanza: ≥${grid.threshold} punti.
- Il punteggio aggiorna automaticamente anche la criticita dell'asset.
`;
+ Il punteggio aggiorna automaticamente anche la criticita del bene.`;
for (const [key, def] of Object.entries(grid.grid)) {
const sel = prev && prev[key] ? prev[key].value : '';
@@ -634,7 +634,7 @@
try {
const result = await api.getAsset(id);
if (!result.success || !result.data) {
- showNotification('Asset non trovato.', 'error');
+ showNotification('Bene non trovato.', 'error');
return;
}
@@ -719,17 +719,17 @@
`
});
} catch (e) {
- showNotification('Errore nel caricamento dell\'asset.', 'error');
+ showNotification('Errore nel caricamento del bene.', 'error');
}
}
// ── Create Asset Modal ──────────────────────────────────
function showCreateAssetModal() {
- showAssetModal('Nuovo Asset', {}, async function(data) {
+ showAssetModal('Nuovo bene', {}, async function(data) {
try {
const result = await api.createAsset(data);
if (result.success) {
- showNotification('Asset registrato con successo!', 'success');
+ showNotification('Bene registrato con successo!', 'success');
closeModal();
loadAssets();
} else {
@@ -746,15 +746,15 @@
try {
const result = await api.getAsset(id);
if (!result.success || !result.data) {
- showNotification('Asset non trovato.', 'error');
+ showNotification('Bene non trovato.', 'error');
return;
}
- showAssetModal('Modifica Asset', result.data, async function(data) {
+ showAssetModal('Modifica bene', result.data, async function(data) {
try {
const res = await api.updateAsset(id, data);
if (res.success) {
- showNotification('Asset aggiornato con successo!', 'success');
+ showNotification('Bene aggiornato con successo!', 'success');
closeModal();
loadAssets();
} else {
@@ -910,7 +910,7 @@ function openImportModal(){
Core ERP,software,critical,financial,false,8,true
Web Portal,service,high,personal,true,3,true">
`;
- showModal('Importa Asset', body, {
+ showModal('Importa beni', body, {
size:'lg',
footer:`
`