mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 18:13:44 +03:00
fix: do not show discriminator dropdown if it is empty
This commit is contained in:
parent
131b437478
commit
7a5d315e09
|
@ -83,7 +83,7 @@
|
||||||
<span *ngIf="prop.pattern" class="param-pattern">{{prop.pattern}}</span>
|
<span *ngIf="prop.pattern" class="param-pattern">{{prop.pattern}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="param-description" [innerHtml]="prop.description | marked"></div>
|
<div class="param-description" [innerHtml]="prop.description | marked"></div>
|
||||||
<div class="discriminator-info" *ngIf="prop.isDiscriminator">
|
<div class="discriminator-info" *ngIf="prop.isDiscriminator && descendants.length">
|
||||||
<drop-down (change)="selectDescendantByIdx($event)" [active]="activeDescendant.idx">
|
<drop-down (change)="selectDescendantByIdx($event)" [active]="activeDescendant.idx">
|
||||||
<option *ngFor="let descendant of descendants; let i=index"
|
<option *ngFor="let descendant of descendants; let i=index"
|
||||||
[value]="i" [attr.selected]="descendant.active ? '' : null" >{{descendant.name}}</option>
|
[value]="i" [attr.selected]="descendant.active ? '' : null" >{{descendant.name}}</option>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user