Skip to content

Commit

Permalink
fix: error multiple tag on button
Browse files Browse the repository at this point in the history
  • Loading branch information
rfrt committed Aug 6, 2024
1 parent 497301a commit 254f443
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions projects/status/src/status-detail/status-detail.component.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
<ngx-message-box *ngIf="status" [type]="messageBoxType" [title]="status.title || ''" showCloseIcon="true" (close)="dialogRef.close()">
<p>{{ status.text }}</p>
@if (status) {
<ngx-message-box [type]="messageBoxType" [title]="status.title || ''" showCloseIcon="true" (close)="dialogRef.close()">
<p>{{ status.text }}</p>
<p class="detail-error-title">Détails de l'erreur:</p>
<div class="detail-error-container">
{{ status.date | date: 'medium' }}
<pre>{{ status.technicalText }}</pre>
</div>

<p class="detail-error-title">Détails de l'erreur:</p>
<div class="detail-error-container">
{{ status.date | date: 'medium' }}
<pre>{{ status.technicalText }}</pre>
</div>

<ng-template #actionsTemplate>
<button *ngIf="status.technicalText" mat-icon-button mat-button (click)="copyToClipboard(fullTextError)" type="button" [color]="'blank'" class="info">
<mat-icon>content_copy</mat-icon>
</button>
</ng-template>
</ngx-message-box>
<ng-template #actionsTemplate>
@if (status.technicalText) {
<button mat-icon-button (click)="copyToClipboard(fullTextError)" type="button" [color]="'blank'" class="info">
<mat-icon>content_copy</mat-icon>
</button>
}
</ng-template>
</ngx-message-box>
}

0 comments on commit 254f443

Please sign in to comment.