fleet/frontend/pages/hosts/ManageHostsPage/constants.ts
Gabriel Hernandez aa60f3a54f
cleanup of manage host page utilities (#7055)
* colocate LabelForm with ManageHostPage

* add url utility to create query string from params object
2022-08-05 09:27:10 -04:00

35 lines
894 B
TypeScript

export const NEW_LABEL_HASH = "#new_label";
export const EDIT_LABEL_HASH = "#edit_label";
export const ALL_HOSTS_LABEL = "all-hosts";
export const LABEL_SLUG_PREFIX = "labels/";
export const DEFAULT_SORT_HEADER = "hostname";
export const DEFAULT_SORT_DIRECTION = "asc";
export const HOST_SELECT_STATUSES = [
{
disabled: false,
label: "All hosts",
value: ALL_HOSTS_LABEL,
helpText: "All hosts that have been enrolled to Fleet.",
},
{
disabled: false,
label: "Online hosts",
value: "online",
helpText: "Hosts that have recently checked in to Fleet.",
},
{
disabled: false,
label: "Offline hosts",
value: "offline",
helpText: "Hosts that have not checked in to Fleet recently.",
},
{
disabled: false,
label: "New hosts",
value: "new",
helpText: "Hosts that have been enrolled to Fleet in the last 24 hours.",
},
];