Update ashboard, tools (~2)
This commit is contained in:
@@ -1604,10 +1604,26 @@
|
||||
const msg = status.anaf.ok !== false ? 'Nicio modificare' : (status.anaf.message || 'Modificări!');
|
||||
subtitle.textContent = `${msg} · ${lastCheck}`;
|
||||
|
||||
if (status.anaf.lastCheck) {
|
||||
document.getElementById('anafLastCheck').textContent =
|
||||
'Ultima verificare: ' + status.anaf.lastCheck;
|
||||
// Construiește detaliile
|
||||
const detailsDiv = document.getElementById('anafDetails');
|
||||
let html = '<div class="status-detail-item"><i data-lucide="clock"></i><span>Ultima verificare: ' +
|
||||
(status.anaf.lastCheck || '-') + '</span></div>';
|
||||
|
||||
// Adaugă modificările dacă există
|
||||
if (status.anaf.details && status.anaf.details.length > 0) {
|
||||
status.anaf.details.forEach(detail => {
|
||||
html += '<div class="status-detail-item" style="flex-direction: column; align-items: flex-start; padding: 12px 16px; background: rgba(234, 179, 8, 0.1); border-radius: 8px; margin-top: 8px;">';
|
||||
html += '<div style="font-weight: 600; color: var(--text-primary); margin-bottom: 4px;">' + detail.name + '</div>';
|
||||
detail.changes.forEach(change => {
|
||||
html += '<div style="font-size: 13px; color: var(--text-secondary); margin-left: 16px;">• ' + change + '</div>';
|
||||
});
|
||||
html += '<a href="' + detail.url + '" target="_blank" style="font-size: 12px; color: #3b82f6; margin-top: 4px; text-decoration: none;">Vezi pagina →</a>';
|
||||
html += '</div>';
|
||||
});
|
||||
}
|
||||
|
||||
detailsDiv.innerHTML = html;
|
||||
lucide.createIcons(); // Reinitializează icon-urile
|
||||
}
|
||||
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user