projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'origin/master' into 13666-data-explorer-mapper
[arvados-workbench2.git]
/
src
/
views-components
/
project-explorer
/
project-explorer-item.ts
diff --git
a/src/views-components/project-explorer/project-explorer-item.ts
b/src/views-components/project-explorer/project-explorer-item.ts
index 055c22cfeabe89adf593fb4e4e8e435a7ea0006d..4fa3d3d67ceccfabf20462450a8367a1e9199b2b 100644
(file)
--- a/
src/views-components/project-explorer/project-explorer-item.ts
+++ b/
src/views-components/project-explorer/project-explorer-item.ts
@@
-2,12
+2,26
@@
//
// SPDX-License-Identifier: AGPL-3.0
//
// SPDX-License-Identifier: AGPL-3.0
+import { getResourceKind, Resource, ResourceKind } from "../../models/resource";
+
export interface ProjectExplorerItem {
uuid: string;
name: string;
export interface ProjectExplorerItem {
uuid: string;
name: string;
- type: string;
+ kind: ResourceKind;
+ url: string;
owner: string;
lastModified: string;
fileSize?: number;
status?: string;
}
owner: string;
lastModified: string;
fileSize?: number;
status?: string;
}
+
+function resourceToDataItem(r: Resource, kind?: ResourceKind) {
+ return {
+ uuid: r.uuid,
+ name: r.name,
+ kind: kind ? kind : getResourceKind(r.kind),
+ owner: r.ownerUuid,
+ lastModified: r.modifiedAt
+ };
+}
+