Skip to content

Commit

Permalink
[TLC-674] Dupe layout changes as per review
Browse files Browse the repository at this point in the history
i18n fix
alignment fix
comment fix
  • Loading branch information
kshepherd committed Feb 10, 2024
1 parent 5812402 commit 3a34a16
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ResourceType } from 'src/app/core/shared/resource-type';

/**
* The resource type for Access Status
* The resource type for Duplicate preview stubs
*
* Needs to be in a separate file to prevent circular
* dependencies in webpack.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
[workflowItem]="workflowitem$.value"></ds-themed-item-list-preview>
<!-- Display duplicate alert, if feature enabled and duplicates detected -->
<ng-container *ngVar="(duplicates$|async)?.length as duplicateCount">
<div [ngClass]="'col-md-12'" *ngIf="duplicateCount > 0">
<div class="d-flex">
{{ duplicateCount }} {{ 'submission.workflow.tasks.duplicates' | translate }}
<div [ngClass]="'row'" *ngIf="duplicateCount > 0">
<div [ngClass]="'col-2'"></div>
<div [ngClass]="'col-10'">
<div class="d-flex">
{{ duplicateCount }} {{ 'submission.workflow.tasks.duplicates' | translate }}
</div>
</div>
</div>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
[workflowItem]="workflowitem$.value"></ds-themed-item-list-preview>
<!-- Display duplicate alert, if feature enabled and duplicates detected -->
<ng-container *ngVar="(duplicates$|async)?.length as duplicateCount">
<div [ngClass]="'col-md-12'" *ngIf="duplicateCount > 0">
<div class="d-flex">
{{ duplicateCount }} {{ 'submission.workflow.tasks.duplicates' | translate }}
<div [ngClass]="'row'" *ngIf="duplicateCount > 0">
<div [ngClass]="'col-2'"></div>
<div [ngClass]="'col-10'">
<div class="d-flex">
{{ duplicateCount }} {{ 'submission.workflow.tasks.duplicates' | translate }}
</div>
</div>
</div>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-->
<div class="text-sm-left" *ngVar="(this.getDuplicateData() | async) as data">
<ng-container *ngIf="data.potentialDuplicates.length == 0">
<p>{{ 'submission.sections.duplicates.none' }}</p>
<p>{{ 'submission.sections.duplicates.none' | translate }}</p>
</ng-container>
<ng-container *ngIf="data.potentialDuplicates.length > 0">
<p>{{ 'submission.sections.duplicates.detected' | translate }}</p>
Expand Down

0 comments on commit 3a34a16

Please sign in to comment.