Skip to content

Commit

Permalink
fix table download
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Sep 28, 2024
1 parent 73cd753 commit f86efeb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/components/appbar/DownloadTableButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const DownloadModal = ({ show, onHide }: any) => {
}
return column.getColDef().headerName
}
console.log(filename)
console.log('colKeys:', getColKeys(), 'class', getClassFilter())
tcState.grid.api.exportDataAsCsv({
suppressQuotes: true,
columnKeys: getColKeys(),
Expand Down Expand Up @@ -120,16 +120,17 @@ const DownloadModal = ({ show, onHide }: any) => {
<div className="d-flex align-items-center mt-2">
<Form.Check
inline
defaultChecked
checked={classFilter === 'all'}
label="all"
name="filterClass"
type="radio"
value="all"
id="filterClass-1"
onChange={(e) => setColFilter('all')}
onChange={(e) => setClassFilter('all')}
/>
<Form.Check
inline
checked={classFilter === 'classified'}
label="classified only"
name="filterClass"
type="radio"
Expand All @@ -139,6 +140,7 @@ const DownloadModal = ({ show, onHide }: any) => {
/>
<Form.Check
inline
checked={classFilter === 'unclassified'}
label="unclassified only"
name="filterClass"
type="radio"
Expand Down Expand Up @@ -178,6 +180,7 @@ const DownloadModal = ({ show, onHide }: any) => {
<div className="d-flex align-items-center mt-2">
<Form.Check
inline
checked={filterAndSort}
label="filter & sort"
name="filterRow"
type="checkbox"
Expand Down Expand Up @@ -209,7 +212,7 @@ const DownloadModal = ({ show, onHide }: any) => {



<Form.Group as={Row} className="mb-2" controlId="rowFilter">
{/* <Form.Group as={Row} className="mb-2" controlId="rowFilter">
<Form.Label column sm="2" className="text-end">
Columns
</Form.Label>
Expand Down Expand Up @@ -251,7 +254,7 @@ const DownloadModal = ({ show, onHide }: any) => {
</Help>
</div>
</Col>
</Form.Group>
</Form.Group> */}


<Form.Group as={Row} className="my-3" controlId="classDownloadBtn">
Expand Down

0 comments on commit f86efeb

Please sign in to comment.