From 5cb586246f39a4f0172e6466ce13430e78fbe983 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 23 Nov 2025 13:22:51 +0000 Subject: [PATCH] Enhance StateDisplay component to conditionally show progress for specific loading types --- src/components/Dashboard/common/StateDisplay.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/Dashboard/common/StateDisplay.jsx b/src/components/Dashboard/common/StateDisplay.jsx index 56fe851..f4b64c7 100644 --- a/src/components/Dashboard/common/StateDisplay.jsx +++ b/src/components/Dashboard/common/StateDisplay.jsx @@ -4,6 +4,7 @@ import { Progress, Flex, Space } from 'antd' import StateTag from './StateTag' const StateDisplay = ({ state, showProgress = true, showState = true }) => { + const loadingProgressTypes = ['loading', 'processing', 'queued', 'printing'] const currentState = state || { type: 'unknown', progress: 0 @@ -16,7 +17,10 @@ const StateDisplay = ({ state, showProgress = true, showState = true }) => { )} - {showProgress && currentState?.progress && currentState?.progress > 0 ? ( + {showProgress && + loadingProgressTypes.includes(currentState.type) && + currentState?.progress && + currentState?.progress > 0 ? (