Skip to content

Commit 4341068

Browse files
committed
Refactor usage component tabs
1 parent cc380c1 commit 4341068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/usage/usage.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
5959
</div>
6060
</form>
6161
<mat-tab-group (selectedTabChange)="tabChanged($event)">
62-
<mat-tab>
62+
<mat-tab *ngIf="this.usageLines.actions.length > 0">
6363
<ng-template mat-tab-label>
6464
<mat-icon class="tab-icon">commit</mat-icon>
6565
Actions
@@ -69,7 +69,7 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
6969
<app-actions [data]="this.usageLines.actions" [currency]="currency"></app-actions>
7070
</ng-template>
7171
</mat-tab>
72-
<mat-tab>
72+
<mat-tab *ngIf="this.usageLines.sharedStorage.length > 0">
7373
<ng-template mat-tab-label>
7474
<mat-icon class="tab-icon">backup</mat-icon>
7575
Shared Storage
@@ -79,7 +79,7 @@ <h1 class="mat-headline-2" style="user-select: none; font-weight: 800; text-alig
7979
<app-shared-storage [data]="this.usageLines.sharedStorage" [currency]="currency"></app-shared-storage>
8080
</ng-template>
8181
</mat-tab>
82-
<mat-tab>
82+
<mat-tab *ngIf="this.usageLines.copilot.length > 0">
8383
<ng-template mat-tab-label>
8484
<mat-icon class="tab-icon" svgIcon="copilot"></mat-icon>
8585
Copilot

0 commit comments

Comments
 (0)