From 606b2531d7bf94a770920436bb0a3a4161e36d70 Mon Sep 17 00:00:00 2001 From: Maxime MAKHLOUFI <maxime.makhloufi@smile.fr> Date: Fri, 4 Sep 2020 17:30:18 +0200 Subject: [PATCH] 18984 - Securisation - Disable verification buttons for operations with 'WARNING' status Co-authored-by: benemart <benedicte.martinez@cea.fr> --- .../securisation-check-tab.component.html | 3 ++- .../securisation-check-tab/securisation-check-tab.component.ts | 1 + .../securisation-preview/securisation-preview.component.html | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.html b/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.html index 41cabf3a..20dcf0c8 100644 --- a/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.html +++ b/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.html @@ -1,3 +1,4 @@ +<ng-container *ngIf="securisation.events[securisation.events.length - 1].outcome !== 'WARNING'"> <mat-form-field class="vitamui-mat-select"> <mat-select placeholder="Selectionnez un contrat d'accès" panelclass="vitamui-mat-select" (selectionChange)="updateAccessContractId($event)"> <mat-option *ngFor='let accessContract of accessContracts' @@ -11,4 +12,4 @@ <vitamui-common-collapse *ngIf="display && events && events.length > 0" collapseTitle="Etapes de vérification" i18n-collapseTitle="@@historySectionTitleUnit"> <vitamui-common-history-events [events]="events" ></vitamui-common-history-events> </vitamui-common-collapse> - +</ng-container> diff --git a/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.ts b/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.ts index 637adc3a..f128f8df 100644 --- a/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.ts +++ b/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-check-tab/securisation-check-tab.component.ts @@ -49,6 +49,7 @@ import {SecurisationService} from '../../securisation.service'; export class SecurisationCheckTabComponent implements OnChanges, OnInit { @Input() id: string; + @Input() securisation: Event; events: Event[] = []; display = false; diff --git a/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-preview.component.html b/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-preview.component.html index f7cdbb84..04c464a7 100644 --- a/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-preview.component.html +++ b/ui/ui-frontend/projects/referential/src/app/securisation/securisation-preview/securisation-preview.component.html @@ -25,7 +25,7 @@ </mat-tab> <mat-tab label="Vérification" i18n-label="History tab@@userPreviewTabVerification"> - <app-securisation-check-tab [id]="securisation?.id"></app-securisation-check-tab> + <app-securisation-check-tab [id]="securisation?.id" [securisation]="securisation"></app-securisation-check-tab> </mat-tab> <mat-tab label="Historique" i18n-label="History tab@@userPreviewTabHistory"> -- GitLab