feat: ora è possibile scorrere gli allegati e modificare i pdf, aggiunte personalizzazioni di immagini e forme per poterle richiamare più rapidamente.

This commit is contained in:
Gabriele Cimaschi committed 2026-09-09 17:03:41 +02:00
1 parent ec1fb25d4e
commit 719fc09c66
8 files changed
+2168 -71

No files matched your search

+7 -3
View File
@@ -284,9 +284,13 @@ const EnvConfigView = {
try {
btn.disabled = true;
const res = await App.api(`/api/config/env/history/${id}`, {
method: 'DELETE'
});
let res;
try {
res = await App.api(`/api/config/env/history/${id}`, { method: 'DELETE' });
} catch (delErr) {
// Fallback to POST endpoint if DELETE route returned 404
res = await App.api(`/api/config/env/history/${id}/delete`, { method: 'POST' });
}
Toast.success(res.message || `Versione #${id} eliminata dallo storico!`);
this.history = res.history || [];