X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9555a2020771863c2e4f6b8802bd6850efb37713..4d78e6e875392cdcadad164cc3863a552343833f:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index cfc2c52c79..e784cec0f5 100644 --- a/src/common/labels.ts +++ b/src/common/labels.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { ResourceKind } from "~/models/resource"; +import { ResourceKind } from "models/resource"; export const resourceLabel = (type: string, subtype = '') => { switch (type) { @@ -11,6 +11,8 @@ export const resourceLabel = (type: string, subtype = '') => { case ResourceKind.PROJECT: if (subtype === "filter") { return "Filter group"; + } else if (subtype === "role") { + return "Group"; } return "Project"; case ResourceKind.PROCESS: @@ -21,6 +23,8 @@ export const resourceLabel = (type: string, subtype = '') => { return "Group"; case ResourceKind.VIRTUAL_MACHINE: return "Virtual Machine"; + case ResourceKind.WORKFLOW: + return "Workflow"; default: return "Unknown"; }