X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b0573b45f19c656ac07901004a3686ef10d402a5..c0e5f8f04311c22ca8e0be32c1c1da88ae1cceec:/src/models/collection.ts diff --git a/src/models/collection.ts b/src/models/collection.ts index cf5b4e68ce..0e96f7fd3d 100644 --- a/src/models/collection.ts +++ b/src/models/collection.ts @@ -2,15 +2,10 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { Resource as R } from "./resource"; -import { Resource } from "../common/api/common-resource-service"; -import { ResourceKind } from "./kinds"; - -export interface Collection extends R { -} +import { Resource, ResourceKind } from "./resource"; export interface CollectionResource extends Resource { - kind: ResourceKind.Collection; + kind: ResourceKind.COLLECTION; name: string; description: string; properties: any; @@ -23,3 +18,7 @@ export interface CollectionResource extends Resource { deleteAt: string; isTrashed: boolean; } + +export const getCollectionUrl = (uuid: string) => { + return `/collections/${uuid}`; +}; \ No newline at end of file