Load users instead of permission into group details table
[arvados-workbench2.git] / src / models / link.ts
index 8665c9eabed78c429b9fae2fe6ef8638756b828d..1798e4477634418248b4de38b399b121561df595 100644 (file)
@@ -2,25 +2,20 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Resource } from "./resource";
+import { Resource, ResourceKind } from "./resource";
+import { TagProperty } from "~/models/tag";
 
 export interface LinkResource extends Resource {
     headUuid: string;
     tailUuid: string;
     linkClass: string;
     name: string;
-    properties: {
-        key?: string;
-        value?: any;
-    };
-}
-
-export enum TailType {
-    COLLECTION = 'Collection',
-    JOB = 'Job'
+    properties: TagProperty;
+    kind: ResourceKind.LINK;
 }
 
 export enum LinkClass {
     STAR = 'star',
-    TAG = 'tag'
+    TAG = 'tag',
+    PERMISSION = 'permission',
 }
\ No newline at end of file