Fix(OutputDialog): properly render string outputs without JSON stringification
parent
087f462d4d
commit
6525bb08cc
|
|
@ -1,6 +1,7 @@
|
||||||
<h1 mat-dialog-title>{{ 'inputDetails' | translate }}</h1>
|
<h1 mat-dialog-title>{{ 'inputDetails' | translate }}</h1>
|
||||||
<div mat-dialog-content>
|
<div mat-dialog-content>
|
||||||
<pre>{{ data.input | json }}</pre>
|
<pre *ngIf="isString">{{ data.input }}</pre>
|
||||||
|
<pre *ngIf="!isString">{{ data.input | json }}</pre>
|
||||||
</div>
|
</div>
|
||||||
<div mat-dialog-actions align="end">
|
<div mat-dialog-actions align="end">
|
||||||
<button class="ordinary-button" (click)="close()">{{ 'buttonClose' | translate }}</button>
|
<button class="ordinary-button" (click)="close()">{{ 'buttonClose' | translate }}</button>
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,8 @@ export class OutputDialogComponent {
|
||||||
close(): void {
|
close(): void {
|
||||||
this.dialogRef.close();
|
this.dialogRef.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isString(): boolean {
|
||||||
|
return typeof this.data.input === 'string';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue