[CST-12109] improvement code

This commit is contained in:
Mykhaylo Boychuk
2023-11-28 00:17:04 +01:00
parent 1c3776b2d3
commit 101cd0a553
9 changed files with 110 additions and 44 deletions

View File

@@ -2,10 +2,11 @@
<ng-container *ngFor="let source of (getQualityAssuranceSources$() | async)">
<div class="alert alert-info d-flex flex-row" *ngIf="source.totalEvents > 0">
<div class="w-100 d-flex justify-content-between">
<div class="pl-4 align-self-center">{{'item.qa-event-notification.check.notification-withdrawn' | translate : {num: source.totalEvents } }} </div>
<div class="pl-4 align-self-center">{{ this.item.isArchived ? ('qa-event-notification.check.notification-withdrawn' | translate)
: ('qa-event-notification.check.notification-reinstate' | translate) }} </div>
<button [routerLink]="['/admin/notifications/quality-assurance/' + source.id]"
class="btn btn-primary align-self-center">{{'item.qa-event-notification-undo-withdrawn.check.button' | translate
}}</button>
class="btn btn-primary align-self-center">{{ this.item.isArchived ? ('qa-event-notification-undo-withdrawn.check.button' | translate)
: ('qa-event-notification-undo-reinstate.check.button' | translate) }}</button>
</div>
</div>
</ng-container>