Skip to content

Commit fd6f77e

Browse files
authored
Merge pull request #628 from europeana/feat/MET-4324-Processing-Overview
MET-4324 Revert Progress Display Count Regression
2 parents fb4b6a4 + f4236f5 commit fd6f77e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

projects/sandbox/src/app/progress-tracker/progress-tracker.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ <h2 class="title-id">{{ datasetId }}</h2>
8686
</ng-template>
8787
<span class="step-label" *ngIf="item.step === 'import'; else stepLabel">harvest</span>
8888
</span>
89-
<span class="step-progress"> {{ item.success + item.fail }} / {{ item.total }} </span>
89+
<span class="step-progress"> {{ item.success + item.warn }} / {{ item.total }} </span>
9090
<span class="step-fail container-h">
9191
<a
9292
*ngIf="item.errors && item.errors.length > 0; else conditionalWrap"

projects/sandbox/src/app/progress-tracker/progress-tracker.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('ProgressTrackerComponent', () => {
8080
expect(component.getLabelClass(StepStatus.NORMALISE)).toEqual('normalization');
8181
expect(component.getLabelClass(StepStatus.PREVIEW)).toEqual('preview');
8282
expect(component.getLabelClass(StepStatus.PUBLISH)).toEqual('publish');
83-
expect(component.getLabelClass('' as StepStatus)).toEqual('');
83+
expect(component.getLabelClass('' as StepStatus)).toEqual('harvest');
8484
});
8585

8686
it('should toggle the exapnded-warning flag', () => {

projects/sandbox/src/app/progress-tracker/progress-tracker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class ProgressTrackerComponent extends SubscriptionManager {
4747
**/
4848
getLabelClass(step: StepStatus): string {
4949
const labelClass = StepStatusClass.get(step);
50-
return labelClass ? labelClass : '';
50+
return labelClass ? labelClass : 'harvest';
5151
}
5252

5353
/**

0 commit comments

Comments
 (0)