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 = () => {
|
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 = () => {
|
const tooltip = () => {
|
||||||
|
|
@ -243,7 +245,7 @@ export default function UpgradeDevice(props: Props) {
|
||||||
<UpdateIcon />
|
<UpdateIcon />
|
||||||
{upgrading() && (
|
{upgrading() && (
|
||||||
<CircularProgress
|
<CircularProgress
|
||||||
// variant="static"
|
variant="determinate"
|
||||||
value={percent()}
|
value={percent()}
|
||||||
size={"2rem"}
|
size={"2rem"}
|
||||||
className={classes.buttonProgress}
|
className={classes.buttonProgress}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue