add advance tab for ssh key, refactor code
[arvados-workbench2.git] / src / models / resource.ts
index 5fa617974b173741e69e3b017c7778223a606cc9..006d0a2382ac19165718adfec7480e1516451fa1 100644 (file)
@@ -44,6 +44,7 @@ export enum ResourceObjectType {
     REPOSITORY = 's0uqq',
     USER = 'tpzed',
     WORKFLOW = '7fd4e',
+    SSH_KEY = 'fngyi'
 }
 
 export const RESOURCE_UUID_PATTERN = '.{5}-.{5}-.{15}';
@@ -78,6 +79,8 @@ export const extractUuidKind = (uuid: string = '') => {
             return ResourceKind.WORKFLOW;
         case ResourceObjectType.REPOSITORY:
             return ResourceKind.REPOSITORY;
+        case ResourceObjectType.SSH_KEY:
+            return ResourceKind.SSH_KEY;
         default:
             return undefined;
     }