projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
17257: Don't export DEFAULT_ADVANCED_FORM_VALUES any more
[arvados.git]
/
src
/
common
/
labels.ts
diff --git
a/src/common/labels.ts
b/src/common/labels.ts
index 9567ce14936b7d880ea06a42069feb85b9ab16d3..c3c4fcd02733ac465bb2a4b27f63503a14bac9ee 100644
(file)
--- a/
src/common/labels.ts
+++ b/
src/common/labels.ts
@@
-2,17
+2,23
@@
//
// 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) => {
switch (type) {
export const resourceLabel = (type: string) => {
switch (type) {
- case ResourceKind.C
ollection
:
+ case ResourceKind.C
OLLECTION
:
return "Data collection";
return "Data collection";
- case ResourceKind.P
roject
:
+ case ResourceKind.P
ROJECT
:
return "Project";
return "Project";
- case ResourceKind.P
rocess
:
+ case ResourceKind.P
ROCESS
:
return "Process";
return "Process";
+ case ResourceKind.USER:
+ return "User";
+ case ResourceKind.GROUP:
+ return "Group";
+ case ResourceKind.VIRTUAL_MACHINE:
+ return "Virtual Machine";
default:
return "Unknown";
}
default:
return "Unknown";
}
-};
\ No newline at end of file
+};