X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/59329caeae17903b97b90b167df5a8122a0c9d95..765f6475a53ac7e635b737642ef375459324a117:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index c3c4fcd027..e784cec0f5 100644 --- a/src/common/labels.ts +++ b/src/common/labels.ts @@ -2,13 +2,18 @@ // // 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"; @@ -18,6 +23,8 @@ export const resourceLabel = (type: string) => { return "Group"; case ResourceKind.VIRTUAL_MACHINE: return "Virtual Machine"; + case ResourceKind.WORKFLOW: + return "Workflow"; default: return "Unknown"; }