Fix(OutputDialog): properly render string outputs without JSON stringification
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:10:46 +02:00
parent 087f462d4d
commit 6525bb08cc
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -15,4 +15,8 @@ export class OutputDialogComponent {
close(): void {
this.dialogRef.close();
}
get isString(): boolean {
return typeof this.data.input === 'string';
}
}