From 769c35f0f7e948c4cc5f3676b1cfbf0117180e64 Mon Sep 17 00:00:00 2001 From: csawatzky Date: Wed, 11 Jun 2025 14:34:52 -0600 Subject: [PATCH] changed the variant of the circular progress to show progress of the update rather than the looping animation --- src/device/UpgradeDevice.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/device/UpgradeDevice.tsx b/src/device/UpgradeDevice.tsx index 8715d23..283ca3d 100644 --- a/src/device/UpgradeDevice.tsx +++ b/src/device/UpgradeDevice.tsx @@ -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) { {upgrading() && (