mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
fix build error and add icon to refresh
This commit is contained in:
@ -30,6 +30,7 @@ import {TablePagination} from "@mui/material";
|
|||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import Button from "@mui/material/Button";
|
import Button from "@mui/material/Button";
|
||||||
import Grid from "@mui/material/Grid";
|
import Grid from "@mui/material/Grid";
|
||||||
|
import Icon from "@mui/material/Icon";
|
||||||
import LinearProgress from "@mui/material/LinearProgress";
|
import LinearProgress from "@mui/material/LinearProgress";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import {DataGridPro, GridSortModel} from "@mui/x-data-grid-pro";
|
import {DataGridPro, GridSortModel} from "@mui/x-data-grid-pro";
|
||||||
@ -184,7 +185,7 @@ function ColumnStats({tableMetaData, fieldMetaData, filter}: Props): JSX.Element
|
|||||||
{statusString ?? <> </>}
|
{statusString ?? <> </>}
|
||||||
</Typography>
|
</Typography>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Button onClick={() => refresh()}>
|
<Button onClick={() => refresh()} startIcon={<Icon>refresh</Icon>}>
|
||||||
Refresh
|
Refresh
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
@ -996,7 +996,7 @@ function RecordQuery({table, launchProcess}: Props): JSX.Element
|
|||||||
|
|
||||||
const openColumnStatistics = async (column: GridColDef) =>
|
const openColumnStatistics = async (column: GridColDef) =>
|
||||||
{
|
{
|
||||||
setFilterForColumnStats(buildQFilter(filterModel));
|
setFilterForColumnStats(buildQFilter(tableMetaData, filterModel));
|
||||||
setColumnStatsFieldName(column.field);
|
setColumnStatsFieldName(column.field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user