CEC-381 Fix install progress (#77)

* Fix install progress

* Remove unused components and inline styles

* Update test

* errors are not the final update state

* Remove max width for main container

* Progress starts at 0
This commit is contained in:
John Wu
2021-08-12 17:51:40 -07:00
committed by GitHub
parent 2b95bab38b
commit f273e25cf8
18 changed files with 489 additions and 612 deletions

View File

@@ -131,10 +131,10 @@ const MainForm = () => {
className={classes.labelInline}
>{`${selected.length} Selected`}</div>
</Grid>
<Grid item md={8} style={{ textAlign: "center" }}>
<Grid item md={8} className={classes.textCenterAlign}>
<SearchField classes={classes} onSearch={handleSearch} />
</Grid>
<Grid item md={2} style={{ textAlign: "right" }}>
<Grid item md={2} className={classes.textRightAlign}>
<Button
type="submit"
disabled={busy || selected.length === 0}

View File

@@ -184,17 +184,17 @@ const MainForm = () => {
};
return (
<div className={classes.paper} style={{ height: 700, width: "100%" }}>
<div className={`${classes.paper} ${classes.tableSize}`}>
<Grid container className={classes.root} spacing={2}>
<Grid item md={4} style={{ textAlign: "justify" }}>
<Grid item md={4} className={classes.textJustifyAlign}>
<Link to="/package-create" className={classes.labelInline}>
<AddCircleIcon fontSize="large" />
</Link>
</Grid>
<Grid item md={4} style={{ textAlign: "center" }}>
<Grid item md={4} className={classes.textCenterAlign}>
<SearchField classes={classes} onSearch={handleSearch} />
</Grid>
<Grid item md={4} style={{ textAlign: "right" }}></Grid>
<Grid item md={4} className={classes.textRightAlign}></Grid>
</Grid>
<Table>
<TableHeaderSortable

View File

@@ -119,7 +119,7 @@ const MainForm = () => {
};
return (
<div className={classes.paper} style={{ height: 700, width: "100%" }}>
<div className={`${classes.paper} ${classes.tableSize}`}>
<Table>
<TableHead>
<TableRow>
@@ -139,7 +139,7 @@ const MainForm = () => {
</TableCell>
<TableCell align="center">
{row.status}
{row.progress > 0 && (
{row.progress > -1 && (
<LinearProgress variant="determinate" value={row.progress} />
)}
</TableCell>