projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update tree test
[arvados-workbench2.git]
/
src
/
models
/
collection.ts
diff --git
a/src/models/collection.ts
b/src/models/collection.ts
index cf5b4e68ce0d2d36331715461a4879b593cd5dcb..f8e38f9a0fac227bd2cfeccd62654723f9c66ef5 100644
(file)
--- a/
src/models/collection.ts
+++ b/
src/models/collection.ts
@@
-2,15
+2,10
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource as R } from "./resource";
-import { Resource } from "../common/api/common-resource-service";
-import { ResourceKind } from "./kinds";
+import { ResourceKind, TrashableResource } from "./resource";
-export interface Collection extends R {
-}
-
-export interface CollectionResource extends Resource {
- kind: ResourceKind.Collection;
+export interface CollectionResource extends TrashableResource {
+ kind: ResourceKind.COLLECTION;
name: string;
description: string;
properties: any;
name: string;
description: string;
properties: any;
@@
-19,7
+14,8
@@
export interface CollectionResource extends Resource {
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
- trashAt: string;
- deleteAt: string;
- isTrashed: boolean;
}
}
+
+export const getCollectionUrl = (uuid: string) => {
+ return `/collections/${uuid}`;
+};