1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { ResourceKind } from "models/resource";
7 export const resourceLabel = (type: string, subtype = '') => {
9 case ResourceKind.COLLECTION:
10 return "Data collection";
11 case ResourceKind.PROJECT:
12 if (subtype === "filter") {
13 return "Filter group";
14 } else if (subtype === "role") {
18 case ResourceKind.PROCESS:
20 case ResourceKind.USER:
22 case ResourceKind.GROUP:
24 case ResourceKind.VIRTUAL_MACHINE:
25 return "Virtual Machine";
26 case ResourceKind.WORKFLOW: