feat: add runs table ui message
This commit is contained in:
@@ -378,6 +378,30 @@ export const RunsTable: React.FC<RunsTableProps> = ({
|
|||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
{Object.keys(groupedRows).length === 0 ? (
|
||||||
|
<Box
|
||||||
|
display="flex"
|
||||||
|
flexDirection="column"
|
||||||
|
alignItems="center"
|
||||||
|
justifyContent="center"
|
||||||
|
sx={{
|
||||||
|
minHeight: 300,
|
||||||
|
textAlign: 'center',
|
||||||
|
color: 'text.secondary'
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Typography variant="h6" gutterBottom>
|
||||||
|
{searchTerm ? t('runstable.placeholder.search') : t('runstable.placeholder.title')}
|
||||||
|
</Typography>
|
||||||
|
<Typography variant="body2" color="text.secondary">
|
||||||
|
{searchTerm
|
||||||
|
? t('recordingtable.search_criteria')
|
||||||
|
: t('runstable.placeholder.body')
|
||||||
|
}
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden' }}>
|
<TableContainer component={Paper} sx={{ width: '100%', overflow: 'hidden' }}>
|
||||||
{Object.entries(groupedRows)
|
{Object.entries(groupedRows)
|
||||||
.slice(
|
.slice(
|
||||||
@@ -474,6 +498,8 @@ export const RunsTable: React.FC<RunsTableProps> = ({
|
|||||||
onRowsPerPageChange={handleAccordionsPerPageChange}
|
onRowsPerPageChange={handleAccordionsPerPageChange}
|
||||||
rowsPerPageOptions={[10, 25, 50, 100]}
|
rowsPerPageOptions={[10, 25, 50, 100]}
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user