Improve soundbox ops dashboard and registry editing
This commit is contained in:
@ -177,7 +177,7 @@
|
||||
</div>
|
||||
<div class="flex items-center gap-4">
|
||||
<div class="relative group">
|
||||
<input class="bg-slate-100 border-none rounded-full px-4 py-2 text-body-md w-64 focus:ring-2 focus:ring-primary transition-all" placeholder="Search operations..." type="text"/>
|
||||
<input id="fee-pricing-search" class="bg-slate-100 border-none rounded-full px-4 py-2 text-body-md w-64 focus:ring-2 focus:ring-primary transition-all" placeholder="Search operations..." type="text"/>
|
||||
<span class="material-symbols-outlined absolute right-3 top-2 text-slate-400">search</span>
|
||||
</div>
|
||||
<button class="p-2 text-slate-500 hover:bg-slate-100 rounded-full transition-colors">
|
||||
@ -552,6 +552,17 @@
|
||||
});
|
||||
|
||||
// Dashboard Interaction
|
||||
document.getElementById('fee-pricing-search')?.addEventListener('keydown', (event) => {
|
||||
const input = event.currentTarget;
|
||||
if (event.key === 'Escape' && input.value) {
|
||||
input.value = '';
|
||||
return;
|
||||
}
|
||||
if (event.key === 'Enter' && input.value.trim()) {
|
||||
window.location.href = `/ui/admin-system-audit-logs?q=${encodeURIComponent(input.value.trim())}`;
|
||||
}
|
||||
});
|
||||
|
||||
const cards = document.querySelectorAll('.lg\\:col-span-4 .bg-white');
|
||||
cards.forEach(card => {
|
||||
card.addEventListener('click', () => {
|
||||
@ -573,4 +584,4 @@
|
||||
<a href="/ui/admin-dashboard-overview" style="margin-right:0;color:#2563eb;text-decoration:none;font-weight:600">Dashboard</a>
|
||||
</div>
|
||||
'
|
||||
</body></html>
|
||||
</body></html>
|
||||
|
||||
Reference in New Issue
Block a user