move list filter preset to url

This commit is contained in:
Christoph Kluge
2026-01-23 11:20:32 +01:00
parent 525d99140f
commit 5567371ccd
5 changed files with 34 additions and 46 deletions

View File

@@ -92,7 +92,7 @@
{/each}
</DropdownMenu>
</Dropdown>
{:else}
{:else} <!-- Lists -->
<Dropdown nav inNavbar {direction}>
<DropdownToggle nav caret>
<Icon name={item.icon} />
@@ -100,7 +100,7 @@
</DropdownToggle>
<DropdownMenu class="dropdown-menu-lg-end">
<DropdownItem
href={item.href}
href={`${item.href}?startTime=last30d`}
>
All Clusters
</DropdownItem>
@@ -112,12 +112,12 @@
</DropdownToggle>
<DropdownMenu>
<DropdownItem class="py-1 px-2"
href={`${item.href}?cluster=${cn}`}
href={`${item.href}?cluster=${cn}&startTime=last30d`}
>
All Jobs
</DropdownItem>
<DropdownItem class="py-1 px-2"
href={`${item.href}?cluster=${cn}&state=running`}
href={`${item.href}?cluster=${cn}&state=running&startTime=last30d`}
>
Running Jobs
</DropdownItem>