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 1b0598d5af25c8d2ea95c274d6f2510460528173..f7cdbb847d2a0b48c440da381b337c56256ddc94 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 @@ -5,14 +5,18 @@ <div class="title"> <h2>{{securisation?.id}}</h2> </div> - <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' - [value]="accessContract.identifier">{{accessContract.name}} - </mat-option> - </mat-select> - </mat-form-field> - <button mat-button class="btn btn-primary button-maring" (click)="downloadReport()" [disabled]="!accessContractId">Télécharger le rapport</button> + + <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' + [value]="accessContract.identifier">{{accessContract.name}} + </mat-option> + </mat-select> + </mat-form-field> + <button mat-button class="btn btn-primary button-maring" (click)="downloadReport()" + [disabled]="!accessContractId">Télécharger le rapport</button> + </ng-container> </div> <div class="vitamui-sidepanel-body"> <mat-tab-group class="preview-tab-group">