diff --git a/dashboard/src/pages/packages/index.vue b/dashboard/src/pages/packages/index.vue index 3c4e082e..4514869c 100644 --- a/dashboard/src/pages/packages/index.vue +++ b/dashboard/src/pages/packages/index.vue @@ -15,6 +15,7 @@ import IconSkipEndFill from "~icons/bi/skip-end-fill"; import IconSkipStartFill from "~icons/bi/skip-start-fill"; import IconCaretRightFill from "~icons/bi/caret-right-fill"; import IconCaretLeftFill from "~icons/bi/caret-left-fill"; +import { PackageListStatusEnum } from "@/openapi-generator"; const authStore = useAuthStore(); const layoutStore = useLayoutStore(); @@ -38,6 +39,19 @@ const toggleLegend = () => { showLegend = !showLegend; if (tooltip) tooltip.hide(); }; + +const statusFilter = $ref(""); +function changeSelectFilter(event: Event) { + if (event) { + let v = (event.target as HTMLOptionElement).value; + let status = undefined as PackageListStatusEnum | undefined; + if (v != "") { + status = v as PackageListStatusEnum; + } + packageStore.filters.status = status; + packageStore.fetchPackages(1); + } +}