Refactor(OutputDialog): use modern Angular @if control flow
testing/ogGui-multibranch/pipeline/head There was a failure building this commit Details
oggui-debian-package/pipeline/head This commit looks good Details

pull/97/head
Juan Manuel Bardallo 2026-07-22 12:13:31 +02:00
parent 6525bb08cc
commit 906cab9143
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
<h1 mat-dialog-title>{{ 'inputDetails' | translate }}</h1>
<div mat-dialog-content>
<pre *ngIf="isString">{{ data.input }}</pre>
<pre *ngIf="!isString">{{ data.input | json }}</pre>
@if (isString) {
<pre>{{ data.input }}</pre>
} @else {
<pre>{{ data.input | json }}</pre>
}
</div>
<div mat-dialog-actions align="end">
<button class="ordinary-button" (click)="close()">{{ 'buttonClose' | translate }}</button>