From dd80d79e8d78d4213251989100c07b1b3e9dfb45 Mon Sep 17 00:00:00 2001 From: Mohamed Bilel Besrour Date: Sat, 7 Dec 2024 01:06:53 +0100 Subject: [PATCH] dont show progressbar with localci --- .../exercises/shared/result/updating-result.component.html | 2 +- .../app/exercises/shared/result/updating-result.component.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/app/exercises/shared/result/updating-result.component.html b/src/main/webapp/app/exercises/shared/result/updating-result.component.html index d21cfcba2f1a..cdd86d95b9a9 100644 --- a/src/main/webapp/app/exercises/shared/result/updating-result.component.html +++ b/src/main/webapp/app/exercises/shared/result/updating-result.component.html @@ -14,6 +14,6 @@ [showCompletion]="showCompletion" [estimatedCompletionDate]="estimatedCompletionDate" [buildStartDate]="buildStartDate" - [showProgressBar]="showProgressBar" + [showProgressBar]="showProgressBarInResult" [showProgressBarBorder]="showProgressBarBorder" /> diff --git a/src/main/webapp/app/exercises/shared/result/updating-result.component.ts b/src/main/webapp/app/exercises/shared/result/updating-result.component.ts index 33610194728d..2c38013e6a11 100644 --- a/src/main/webapp/app/exercises/shared/result/updating-result.component.ts +++ b/src/main/webapp/app/exercises/shared/result/updating-result.component.ts @@ -50,6 +50,7 @@ export class UpdatingResultComponent implements OnChanges, OnDestroy { isQueued: boolean; estimatedCompletionDate?: dayjs.Dayjs; buildStartDate?: dayjs.Dayjs; + showProgressBarInResult = false; missingResultInfo = MissingResultInformation.NONE; public resultSubscription: Subscription; public submissionSubscription: Subscription; @@ -74,6 +75,10 @@ export class UpdatingResultComponent implements OnChanges, OnDestroy { this.subscribeForNewSubmissions(); } + if (this.submissionService.getIsLocalCIProfile()) { + this.showProgressBarInResult = this.showProgressBar; + } + if (this.result) { this.showResult.emit(); }