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