Improve soundbox ops dashboard and registry editing

This commit is contained in:
Wira Basalamah
2026-06-08 15:56:12 +07:00
parent 836eb7db85
commit 67dc286c1a
18 changed files with 768 additions and 120 deletions

View File

@ -672,8 +672,14 @@
try {
api.requireToken();
auditLogs = await api.listAuditLogs(buildQuery());
renderRows();
} catch (error) {
renderRows();
const initialQuery = new URLSearchParams(window.location.search).get('q') || '';
const auditSearch = document.getElementById('audit-search');
if (initialQuery && auditSearch && !auditSearch.value) {
auditSearch.value = initialQuery;
renderRows();
}
} catch (error) {
const tbody = document.getElementById('audit-log-rows');
if (tbody) {
tbody.innerHTML = `<tr><td colspan="7" class="px-6 py-10 text-center text-danger">${escapeHtml(error.message || 'Failed to load audit logs')}</td></tr>`;