Skip to content

Commit

Permalink
Refactor experiment config details component to display object values…
Browse files Browse the repository at this point in the history
… as JSON strings
  • Loading branch information
wd400 committed Mar 6, 2024
1 parent bcf0bff commit 79a36b4
Showing 1 changed file with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,27 @@ <h2 class="accordion-header" id="headingExplorer">
"
>
<li>
{{ key + " : " + this.experiment.explorers[0].config[key] }}
<span
>{{ key }} :

<!-- if it's a string or number, display it -->
<span *ngIf="this.experiment.explorers[0].config[key].constructor.name != 'Object'">
{{ this.experiment.explorers[0].config[key] }}
</span>
<!-- if it's an object, display it as a JSON string -->
<span *ngIf="this.experiment.explorers[0].config[key].constructor.name == 'Object'">
{{this.experiment.explorers[0].config[key] | json }}
</span>





</span>




</li>
</div>
</div>
Expand Down

0 comments on commit 79a36b4

Please sign in to comment.