projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15768: standardized naming Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados.git]
/
src
/
common
/
labels.ts
diff --git
a/src/common/labels.ts
b/src/common/labels.ts
index 133a0e45cfed26d8dfc8a4a2e86e7c4c6a0966f0..e784cec0f5d95fd915a58b0d2ca78163178f8bdb 100644
(file)
--- a/
src/common/labels.ts
+++ b/
src/common/labels.ts
@@
-2,13
+2,18
@@
//
// 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";
+ } else if (subtype === "role") {
+ return "Group";
+ }
return "Project";
case ResourceKind.PROCESS:
return "Process";
return "Project";
case ResourceKind.PROCESS:
return "Process";
@@
-16,6
+21,10
@@
export const resourceLabel = (type: string) => {
return "User";
case ResourceKind.GROUP:
return "Group";
return "User";
case ResourceKind.GROUP:
return "Group";
+ case ResourceKind.VIRTUAL_MACHINE:
+ return "Virtual Machine";
+ case ResourceKind.WORKFLOW:
+ return "Workflow";
default:
return "Unknown";
}
default:
return "Unknown";
}