13493: Merge branch 'master' into 13494-collection-version-browser
[arvados-workbench2.git] / src / views-components / details-panel / collection-details.tsx
index 625d8405f0d2f34748b8cd6ffcc4e681fb25c23b..d2457559e4d8207189df0c0818a9b698e60643c1 100644 (file)
@@ -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 />;
     }
 }