X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/7ae86efd9905582df4191910528c3803a68ba81b..d1c2611350e47527730f6d3b226b998abf15a607:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index ed3a43d1..682513fb 100644 --- a/src/common/labels.ts +++ b/src/common/labels.ts @@ -2,17 +2,28 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind } from "../models/resource"; +import { ResourceKind } from "models/resource"; -export const resourceLabel = (type: string) => { +export const resourceLabel = (type: string, subtype = '') => { switch (type) { case ResourceKind.COLLECTION: return "Data collection"; case ResourceKind.PROJECT: + if (subtype === "filter") { + return "Filter group"; + } else if (subtype === "role") { + return "Group"; + } return "Project"; 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 +};