X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f9dde5c781766b8be71d43d0f031c201a0edcfbb..172ba18e43743d90b8a1110d62209be2ab7627d1:/src/common/labels.ts diff --git a/src/common/labels.ts b/src/common/labels.ts index c3c4fcd0..f534bd2b 100644 --- a/src/common/labels.ts +++ b/src/common/labels.ts @@ -2,13 +2,16 @@ // // 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"; + } return "Project"; case ResourceKind.PROCESS: return "Process";