Skip to content
Snippets Groups Projects
Commit 6e83e439 authored by ali asaria's avatar ali asaria
Browse files

improve loading bars on dataset preview with template

parent 9749994c
Branches
Tags
No related merge requests found
...@@ -8,6 +8,7 @@ import { ...@@ -8,6 +8,7 @@ import {
iconButtonClasses, iconButtonClasses,
Alert, Alert,
Chip, Chip,
LinearProgress,
} from '@mui/joy'; } from '@mui/joy';
import * as chatAPI from '../../lib/transformerlab-api-sdk'; import * as chatAPI from '../../lib/transformerlab-api-sdk';
...@@ -59,7 +60,7 @@ const DatasetTableWithTemplate = ({ datasetId, template }) => { ...@@ -59,7 +60,7 @@ const DatasetTableWithTemplate = ({ datasetId, template }) => {
if (!result?.data?.rows) { if (!result?.data?.rows) {
if (isLoading) { if (isLoading) {
return <CircularProgress />; return <LinearProgress />;
} }
return ''; return '';
} }
...@@ -67,7 +68,7 @@ const DatasetTableWithTemplate = ({ datasetId, template }) => { ...@@ -67,7 +68,7 @@ const DatasetTableWithTemplate = ({ datasetId, template }) => {
<> <>
{/* <pre>{JSON.stringify(data, null, 2)}</pre> */} {/* <pre>{JSON.stringify(data, null, 2)}</pre> */}
<Box sx={{ overflow: 'auto', height: '100%' }}> <Box sx={{ overflow: 'auto', height: '100%' }}>
{isLoading && <CircularProgress />} {isLoading && <LinearProgress />}
{result?.status == 'error' && ( {result?.status == 'error' && (
<Alert color="danger">{result?.message}</Alert> <Alert color="danger">{result?.message}</Alert>
)} )}
......
...@@ -62,7 +62,7 @@ function TrainingModalDataTemplatingTab({ ...@@ -62,7 +62,7 @@ function TrainingModalDataTemplatingTab({
color="neutral" color="neutral"
variant="plain" variant="plain"
sx={{ sx={{
'--CircularProgress-size': '16px', '--CircularProgress-size': '12px',
'--CircularProgress-trackThickness': '2px', '--CircularProgress-trackThickness': '2px',
'--CircularProgress-progressThickness': '2px', '--CircularProgress-progressThickness': '2px',
}} }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment