Merge branch '19143-project-list-workflows'
[arvados-workbench2.git] / src / common / labels.ts
index cfc2c52c799ce96b2ef03647c8e0ba3d41d20613..e784cec0f5d95fd915a58b0d2ca78163178f8bdb 100644 (file)
@@ -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";
     }