Skip to content

Commit

Permalink
[Playground] Only display parameters where available (#1594)
Browse files Browse the repository at this point in the history
Only display parameters where available
  • Loading branch information
Medienkunzt authored Feb 28, 2024
1 parent 81a4f2b commit cd19ddb
Showing 1 changed file with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,24 @@
</p>
<br />

<span class="header"><b>Parameter:</b></span> <br />
<span
class="routine-definition"
*ngFor="let param of routine.parameters.split(', ')"
>
{{ param }} <br />
<span class="header">
<b>Parameter:</b>
<i *ngIf="routine.parameters === undefined || routine.parameters === ''">
(None)
</i>
</span>
<br />

<div *ngIf="routine.parameters !== undefined && routine.parameters !== ''">
<span
class="routine-definition"
*ngFor="let param of routine.parameters.split(',')"
>
{{ param }} <br />
</span>
<br />
</div>

<p class="header"><b>Definition:</b></p>
<pre class="routine-definition overflow">{{ routine.definition }}</pre>
</mat-expansion-panel>

0 comments on commit cd19ddb

Please sign in to comment.