X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/21abfcbaba4e8e735f353a1e3b030dd5dae8465b..4c0099ec3509061ca3f507658689bf3bba77e5ea:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index cfc2c52c..e784cec0 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"; }