diff --git a/site-config/anvil-cmg/dev/detail/dataset/export/export.ts b/site-config/anvil-cmg/dev/detail/dataset/export/export.ts index 1f687257c..994ac51f8 100644 --- a/site-config/anvil-cmg/dev/detail/dataset/export/export.ts +++ b/site-config/anvil-cmg/dev/detail/dataset/export/export.ts @@ -181,6 +181,60 @@ export const exportConfig: ExportConfig = { } as ComponentConfig, ], }, + { + mainColumn: [ + /* --------- */ + /* Dataset is not accessible; render warning */ + /* --------- */ + { + children: [ + { + children: [ + { + component: MDX.Alert, + viewBuilder: V.buildAlertDatasetExportWarning, + } as ComponentConfig, + ], + component: C.BackPageContentSingleColumn, + } as ComponentConfig, + ], + component: C.ConditionalComponent, + viewBuilder: V.renderDatasetExportWarning, + } as ComponentConfig, + /* ------ */ + /* Dataset is accessible; render Cancer Genomics Cloud export method */ + /* ------ */ + { + children: [ + { + children: [ + { + component: ExportToPlatform, + viewBuilder: V.buildDatasetExportToPlatform( + EXPORTS.CANCER_GENOMICS_CLOUD + ), + } as ComponentConfig, + ], + component: C.BackPageContentMainColumn, + } as ComponentConfig, + /* sideColumn */ + ...exportSideColumn, + ], + component: C.ConditionalComponent, + viewBuilder: V.renderDatasetExport, + } as ComponentConfig, + ], + route: ROUTES.CANCER_GENOMICS_CLOUD, + top: [ + { + children: [DATASET_ACCESSIBILITY_BADGE], + component: C.BackPageHero, + viewBuilder: V.buildDatasetExportToPlatformHero( + EXPORTS.CANCER_GENOMICS_CLOUD.title + ), + } as ComponentConfig, + ], + }, { mainColumn: [ /* --------- */ @@ -286,6 +340,12 @@ export const exportConfig: ExportConfig = { EXPORT_METHODS.CAVATICA ), } as ComponentConfig, + { + component: ExportMethod, + viewBuilder: V.buildDatasetExportToPlatformMethod( + EXPORT_METHODS.CANCER_GENOMICS_CLOUD + ), + } as ComponentConfig, { component: C.ExportMethod, viewBuilder: V.buildDatasetExportMethodManifestDownload,