Add sidebar navigation and global command search
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
let search = $state(''); let status = $state('');
|
||||
let loadSequence = 0;
|
||||
const canManage = $derived($page.data.user?.role === 'admin');
|
||||
$effect(() => { if (canManage && $page.url.searchParams.get('action') === 'add') addOpen = true; });
|
||||
const attention = $derived(hosts.filter(host => ['attention', 'offline'].includes(hostListStatus(host, now).key)).length);
|
||||
const ready = $derived(hosts.filter(host => hostListStatus(host, now).key === 'ready').length);
|
||||
const filtersVisible = $derived(hosts.length > 5 || !!search || !!status);
|
||||
|
||||
Reference in New Issue
Block a user