Improve soundbox ops dashboard and registry editing
This commit is contained in:
@ -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>`;
|
||||
|
||||
Reference in New Issue
Block a user