X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/18a8117437056f65e3c9d84b0231c5f64b1346d1..e4395f2bfb2a271303e9dc7f91bec6c890e792e3:/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 +};