X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/89c3c647797787377f4d950b38d320ee3b28e92c..76c84f182253b2b10b570d669589fa576dd8ba81:/src/models/search-bar.ts diff --git a/src/models/search-bar.ts b/src/models/search-bar.ts index efbbb157cc..effaeed4c0 100644 --- a/src/models/search-bar.ts +++ b/src/models/search-bar.ts @@ -6,7 +6,7 @@ import { ResourceKind } from '~/models/resource'; export type SearchBarAdvanceFormData = { type?: ResourceKind; - cluster?: ClusterObjectType; + cluster?: string; projectUuid?: string; inTrash: boolean; dateFrom: string; @@ -14,29 +14,10 @@ export type SearchBarAdvanceFormData = { saveQuery: boolean; queryName: string; searchValue: string; - properties: PropertyValues[]; + properties: PropertyValue[]; }; -export interface PropertyValues { +export interface PropertyValue { key: string; value: string; } - -export enum ClusterObjectType { - INDIANAPOLIS = "indianapolis", - KAISERAUGST = "kaiseraugst", - PENZBERG = "penzberg" -} - -export const getClusterObjectType = (cluster?: string) => { - switch (cluster) { - case "indianapolis": - return ClusterObjectType.INDIANAPOLIS; - case "kaiseraugst": - return ClusterObjectType.KAISERAUGST; - case "penzberg": - return ClusterObjectType.PENZBERG; - default: - return undefined; - } -};