diff --git a/app/scripts/components/datasets/s-overview/index.tsx b/app/scripts/components/datasets/s-overview/index.tsx index e54fc9915..eaaa26239 100644 --- a/app/scripts/components/datasets/s-overview/index.tsx +++ b/app/scripts/components/datasets/s-overview/index.tsx @@ -44,7 +44,10 @@ function DatasetsOverview() { parentTo: DATASETS_PATH, items: allDatasetsProps, currentId: dataset.data.id, - localMenuCmp: + localMenuCmp: + dataset?.data.disableExplore !== true ? ( + + ) : null }} /> @@ -53,7 +56,8 @@ function DatasetsOverview() { title={`${dataset.data.name} Overview`} description={dataset.data.description} renderBetaBlock={() => ( - + + {dataset?.data.disableExplore !== true && ( - - + )} + + )} renderDetailsBlock={() => ( <> diff --git a/docs/content/CONTENT.md b/docs/content/CONTENT.md index d454fea34..9d8f7abbf 100644 --- a/docs/content/CONTENT.md +++ b/docs/content/CONTENT.md @@ -50,6 +50,7 @@ media: Media thematics: string[] sources: string[] featured: boolean +disableExplore: boolean layers: Layer[] related: Related[] @@ -109,6 +110,11 @@ taxonomy: Whether this dataset is featured ![](./media/fm-featured-dataset.png) +**disableExplore** +`boolean` +When set to true, the 'explore data' section won't be available for this dataset. + + **layers** `Layer[]` List of layers for this dataset. See [layer.md](./frontmatter/layer.md). diff --git a/parcel-resolver-veda/index.d.ts b/parcel-resolver-veda/index.d.ts index 204765a88..6c610201c 100644 --- a/parcel-resolver-veda/index.d.ts +++ b/parcel-resolver-veda/index.d.ts @@ -151,6 +151,7 @@ declare module 'veda' { media?: Media; layers: DatasetLayer[]; related?: RelatedContentData[]; + disableExplore?: boolean; } // ///////////////////////////////////////////////////////////////////////////