@@ -1259,6 +1259,9 @@ async function showLogContext(id) {
|
|||||||
} catch (e) { toast('Failed to load context', 'danger'); }
|
} catch (e) { toast('Failed to load context', 'danger'); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
document.getElementById('logSearchBtn').addEventListener('click', () => loadLogs());
|
||||||
|
document.getElementById('logSearchInput').addEventListener('keydown', e => { if (e.key === 'Enter') loadLogs(); });
|
||||||
|
|
||||||
async function exportLogs() {
|
async function exportLogs() {
|
||||||
const query = document.getElementById('logSearchInput').value.trim();
|
const query = document.getElementById('logSearchInput').value.trim();
|
||||||
if (!query) { toast('Search something first', 'warning'); return; }
|
if (!query) { toast('Search something first', 'warning'); return; }
|
||||||
|
|||||||
Reference in New Issue
Block a user