feat(ui,api): layout mini-card fisso, nominativo tx pulito, cache-busting index e check Gitea asincrono
This commit is contained in:
+7
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user