diff --git a/src/lib/components/toolbar/RefreshControls.svelte b/src/lib/components/toolbar/RefreshControls.svelte index e69de29..b679dcf 100644 --- a/src/lib/components/toolbar/RefreshControls.svelte +++ b/src/lib/components/toolbar/RefreshControls.svelte @@ -0,0 +1,117 @@ + + +
+ + +
+ + diff --git a/src/lib/components/toolbar/ToolBar.svelte b/src/lib/components/toolbar/ToolBar.svelte index 68d3243..a615e2f 100644 --- a/src/lib/components/toolbar/ToolBar.svelte +++ b/src/lib/components/toolbar/ToolBar.svelte @@ -12,6 +12,7 @@ import type { AppConfig } from "$lib/types/config"; import StatusFilter from "./StatusFilter.svelte"; import SearchBox from "./SearchBox.svelte"; + import RefreshControls from "./RefreshControls.svelte"; export let searchTerm: string; export let statusFilter: string = "all"; export let itemsPerPage: number; @@ -37,14 +38,6 @@ })), ]; - const refreshRateOptions = [ - { value: 1000, label: "1s" }, - { value: 2000, label: "2s" }, - { value: 5000, label: "5s" }, - { value: 10000, label: "10s" }, - { value: 30000, label: "30s" }, - ]; - function changePage(page: number) { if (page >= 1 && page <= totalPages) { currentPage = page; @@ -166,32 +159,7 @@ {/if} -
-
- - -
-
+