changed the variant of the circular progress to show progress of the update rather than the looping animation

This commit is contained in:
csawatzky 2025-06-11 14:34:52 -06:00
parent 7ef12f1078
commit 769c35f0f7

View file

@ -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}