-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract systems list filter to a separate component
- Loading branch information
1 parent
813ece7
commit 090e76a
Showing
2 changed files
with
23 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { SearchField } from "components/table/SearchField"; | ||
|
||
const allListOptions = [ | ||
{ value: "server_name", label: t("System") }, | ||
{ value: "system_kind", label: t("System Kind") }, | ||
{ value: "status_type", label: t("Updates") }, | ||
{ value: "total_errata_count", label: t("Patches") }, | ||
{ value: "outdated_packages", label: t("Packages") }, | ||
{ value: "extra_pkg_count", label: t("Extra Packages") }, | ||
{ value: "config_files_with_differences", label: t("Config Diffs") }, | ||
{ value: "channel_labels", label: t("Base Channel") }, | ||
{ value: "entitlement_level", label: t("System Type") }, | ||
{ value: "requires_reboot", label: t("Requires Reboot") }, | ||
{ value: "created_days", label: t("Registered Days") }, | ||
{ value: "group_count", label: t("Groups") }, | ||
]; | ||
|
||
export const SystemsListFilter = (props) => { | ||
return <SearchField options={allListOptions} name="criteria" />; | ||
}; |