X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a886877017be6744b38d84d52503d21892704139..59329caeae17903b97b90b167df5a8122a0c9d95:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index 9567ce14..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 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 +};