X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9ee35a64c605f116aec71f78c65b54730d6e1076..df0520719b15e7e230fb72f3e53ff36a34f4ba87:/src/views-components/details-panel/collection-details.tsx

diff --git a/src/views-components/details-panel/collection-details.tsx b/src/views-components/details-panel/collection-details.tsx
index 625d8405..d2457559 100644
--- a/src/views-components/details-panel/collection-details.tsx
+++ b/src/views-components/details-panel/collection-details.tsx
@@ -14,7 +14,26 @@ export class CollectionDetails extends DetailsData<CollectionResource> {
         return <CollectionIcon className={className} />;
     }
 
-    getDetails() {
-        return <CollectionDetailsAttributes item={this.item} twoCol={false} />;
+    getTabLabels() {
+        return ['Details', 'Versions'];
+    }
+
+    getDetails(tabNumber: number) {
+        switch (tabNumber) {
+            case 0:
+                return this.getCollectionInfo();
+            case 1:
+                return this.getVersionBrowser();
+            default:
+                return <div />;
+        }
+    }
+
+    private getCollectionInfo() {
+        return <CollectionDetailsAttributes twoCol={false} item={this.item} />;
+    }
+
+    private getVersionBrowser() {
+        return <div />;
     }
 }
