projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tree picker initialization for CollectionCopyDialog
[arvados-workbench2.git]
/
src
/
models
/
collection.ts
diff --git
a/src/models/collection.ts
b/src/models/collection.ts
index 2a92594473cac819263e0af8ece34044475ba37f..53c6230143b9a78c8881d8b92baeb5e4ea305c1d 100644
(file)
--- a/
src/models/collection.ts
+++ b/
src/models/collection.ts
@@
-2,10
+2,10
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
-import { Resource
, ResourceKind
} from "./resource";
+import { Resource
Kind, TrashableResource
} from "./resource";
-export interface CollectionResource extends Resource {
- kind: ResourceKind.C
ollection
;
+export interface CollectionResource extends
Trashable
Resource {
+ kind: ResourceKind.C
OLLECTION
;
name: string;
description: string;
properties: any;
name: string;
description: string;
properties: any;
@@
-14,7
+14,11
@@
export interface CollectionResource extends Resource {
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
replicationDesired: number;
replicationConfirmed: number;
replicationConfirmedAt: string;
-
trashAt: string
;
-
deleteAt: string
;
-
isTrashed: boolean
;
+
storageClassesDesired: string[]
;
+
storageClassesConfirmed: string[]
;
+
storageClassesConfirmedAt: string
;
}
}
+
+export const getCollectionUrl = (uuid: string) => {
+ return `/collections/${uuid}`;
+};