projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/main' into 18169-cancel-button-not-working
[arvados-workbench2.git]
/
src
/
common
/
labels.ts
diff --git
a/src/common/labels.ts
b/src/common/labels.ts
index c3c4fcd02733ac465bb2a4b27f63503a14bac9ee..f534bd2b4e30546bb8740a8e354cde6a0fef0903 100644
(file)
--- a/
src/common/labels.ts
+++ b/
src/common/labels.ts
@@
-2,13
+2,16
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// 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:
switch (type) {
case ResourceKind.COLLECTION:
return "Data collection";
case ResourceKind.PROJECT:
+ if (subtype === "filter") {
+ return "Filter group";
+ }
return "Project";
case ResourceKind.PROCESS:
return "Process";
return "Project";
case ResourceKind.PROCESS:
return "Process";