Refactor(OutputDialog): use modern Angular @if control flow
parent
6525bb08cc
commit
906cab9143
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue