changed the variant of the circular progress to show progress of the update rather than the looping animation
This commit is contained in:
parent
7ef12f1078
commit
769c35f0f7
1 changed files with 4 additions and 2 deletions
|
|
@ -118,7 +118,9 @@ export default function UpgradeDevice(props: Props) {
|
|||
};
|
||||
|
||||
const percent = () => {
|
||||
return Math.round((upgrade.status.offset / upgrade.status.size) * 100);
|
||||
let progress = Math.round((upgrade.status.offset / upgrade.status.size) * 100)
|
||||
console.log(progress)
|
||||
return progress;
|
||||
};
|
||||
|
||||
const tooltip = () => {
|
||||
|
|
@ -243,7 +245,7 @@ export default function UpgradeDevice(props: Props) {
|
|||
<UpdateIcon />
|
||||
{upgrading() && (
|
||||
<CircularProgress
|
||||
// variant="static"
|
||||
variant="determinate"
|
||||
value={percent()}
|
||||
size={"2rem"}
|
||||
className={classes.buttonProgress}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue