Only show tabs if there are more than one

This commit is contained in:
Jason Wall 2024-03-09 14:03:08 -05:00
parent 02cef20cd0
commit eff29f6f92

View File

@ -14,7 +14,7 @@
</span>
</mat-toolbar>
<mat-dialog-content class="content">
<mat-tab-group>
<mat-tab-group *ngIf="strongsResults.length > 1">
<mat-tab *ngFor="let card of strongsResults">
<ng-template mat-tab-label>{{ card.prefix }}{{ card.sn }}</ng-template>
<app-strongs
@ -23,4 +23,10 @@
></app-strongs>
</mat-tab>
</mat-tab-group>
<ng-container *ngIf="strongsResults.length === 1">
<app-strongs
[data]="strongsResults[0]"
(openPassage)="openPassage($event)"
></app-strongs>
</ng-container>
</mat-dialog-content>