X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/b3ed96a047c8db5febae40b6f186a656589167d8..b05f087c3e2bbaaa829d602af6d90fa565a9900e:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index ecd79890..c3c4fcd0 100644 --- a/src/common/labels.ts +++ b/src/common/labels.ts @@ -2,17 +2,23 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind } from "../models/resource"; +import { ResourceKind } from "~/models/resource"; -export const RESOURCE_LABEL = (type: string) => { +export const resourceLabel = (type: string) => { switch (type) { - case ResourceKind.Collection: + case ResourceKind.COLLECTION: return "Data collection"; - case ResourceKind.Project: + case ResourceKind.PROJECT: return "Project"; - case ResourceKind.Process: + case ResourceKind.PROCESS: return "Process"; + case ResourceKind.USER: + return "User"; + case ResourceKind.GROUP: + return "Group"; + case ResourceKind.VIRTUAL_MACHINE: + return "Virtual Machine"; default: return "Unknown"; } -}; \ No newline at end of file +};