From 0f49f54c29e89ee32ff1d949172a84424c9e889c Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Thu, 1 May 2025 18:54:14 -0600 Subject: [PATCH] dont show indeterminate progress when waiting for phase --- .../routes/services/components/progress.component.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/projects/ui/src/app/routes/portal/routes/services/components/progress.component.ts b/web/projects/ui/src/app/routes/portal/routes/services/components/progress.component.ts index 77dc6d095..77ec189b8 100644 --- a/web/projects/ui/src/app/routes/portal/routes/services/components/progress.component.ts +++ b/web/projects/ui/src/app/routes/portal/routes/services/components/progress.component.ts @@ -50,7 +50,7 @@ import { getManifest } from 'src/app/utils/get-package-data' size="m" [max]="100" [class.g-positive]="phase.progress === true" - [value]="isPending(phase.progress) ? undefined : percent" + [value]="isIndeterminate(phase.progress) ? undefined : percent" > } @@ -87,9 +87,10 @@ export class ServiceInstallProgressComponent { private readonly errorService = inject(ErrorService) private readonly loader = inject(LoadingService) - isPending(progress: T.Progress): boolean { + isIndeterminate(progress: T.Progress): boolean { return ( - !progress || (progress && progress !== true && progress.total === null) + progress === false || + (!!progress && progress !== true && progress.total === null) ) }