Skip to content

Commit

Permalink
Merge pull request #247 from GetDKAN/WCMS-22086-disable-table-controls
Browse files Browse the repository at this point in the history
WCMS-22086: refactored table-control property
  • Loading branch information
dcgoodwin2112 authored Aug 30, 2024
2 parents 37388a4 + 1f98ee3 commit 7957a96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/templates/Dataset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Dataset = ({
defaultPageSize = 25,
dataDictionaryCSV = false,
dataDictionaryBanner = false,
datasetTableControls = false,
disableTableControls = false,
} : DatasetPageType) => {
const options = location.search
? { ...qs.parse(location.search, { ignoreQueryPrefix: true }) }
Expand Down Expand Up @@ -195,7 +195,7 @@ const Dataset = ({
rootUrl: rootUrl,
customColumns: customColumns,
dataDictionaryBanner: (dataDictionaryBanner && displayDataDictionaryTab),
datasetTableControls: datasetTableControls
datasetTableControls: !disableTableControls
}}>
<DataTableStateWrapper />
</DataTableContext.Provider>
Expand Down
2 changes: 1 addition & 1 deletion src/types/dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type DatasetPageType = {
defaultPageSize: Number,
dataDictionaryCSV: boolean,
dataDictionaryBanner: boolean,
datasetTableControls: boolean,
disableTableControls: boolean,
}


Expand Down

0 comments on commit 7957a96

Please sign in to comment.