Merge branch '18559-user-profile' into main. Closes #18559
[arvados-workbench2.git] / src / models / object-types.ts
index c01df75187eb76322ba80a0640b3348e73f91411..f0f17e0f632cdb4a43c89e88ec8ae86f2534a4e9 100644 (file)
@@ -6,18 +6,18 @@ const USER_UUID_REGEX = /.*tpzed.*/;
 const GROUP_UUID_REGEX = /.*-j7d0g-.*/;
 
 export enum ObjectTypes {
-    USER,
-    GROUP,
-    UNKNOWN
+    USER = "User",
+    GROUP = "Group",
+    UNKNOWN = "Unknown"
 }
 
 export const getUuidObjectType = (uuid: string) => {
-    switch(true) {
-       case USER_UUID_REGEX.test(uuid):
-          return ObjectTypes.USER;
-       case GROUP_UUID_REGEX.test(uuid):
-          return ObjectTypes.GROUP;
-       default:
-          return ObjectTypes.UNKNOWN;
+    switch (true) {
+        case USER_UUID_REGEX.test(uuid):
+            return ObjectTypes.USER;
+        case GROUP_UUID_REGEX.test(uuid):
+            return ObjectTypes.GROUP;
+        default:
+            return ObjectTypes.UNKNOWN;
     }
- };
\ No newline at end of file
+};
\ No newline at end of file