feat(ui,api): layout mini-card fisso, nominativo tx pulito, cache-busting index e check Gitea asincrono

This commit is contained in:
2026-11-03 13:03:55 +01:00
parent 36def1e201
commit 66cd63a181
2 changed files with 33 additions and 14 deletions
+7 -1
View File
@@ -1369,7 +1369,13 @@ function urlB64ToUint8Array(base64String) { const padding = '='.repeat((4 - base
async function checkServerUpdate() {
if (!isAuthenticated || me.role !== 'admin') return;
try { const res = await fetch('/api/server_update/check'); const data = await res.json(); const btn = document.getElementById('server-update-btn'); if (btn) { btn.style.display = data.update_available ? 'inline-block' : 'none'; } } catch (e) { console.error(e); }
try {
// Modifica: la dashboard chiede solo al backend senza innescare comandi git
const res = await fetch('/api/server_update/status');
const data = await res.json();
const btn = document.getElementById('server-update-btn');
if (btn) { btn.style.display = data.update_available ? 'inline-block' : 'none'; }
} catch (e) { console.error(e); }
}
function confirmServerUpdate() {