X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/090f4825bdd30925a10c6df1b9493df0c2e8f541..5e020488f67b5bc919796e0dc8b0b9f3b3ff23b0:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index 133a0e45cf..682513fb16 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"; @@ -16,6 +21,8 @@ export const resourceLabel = (type: string) => { return "User"; case ResourceKind.GROUP: return "Group"; + case ResourceKind.VIRTUAL_MACHINE: + return "Virtual Machine"; default: return "Unknown"; }