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:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user