Skip to content

Commit 07ad8a8

Browse files
committed
All footer rows are hidden if there are no normal rows #11379
1 parent 37c09c4 commit 07ad8a8

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

client/app/admin/bookings/bookings/bookings.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<table mat-table matSort [dataSource]="dataSource" (matSortChange)="sorting([$event])">
2626
<tr *matHeaderRowDef="columnsForTable" mat-header-row></tr>
2727
<tr *matRowDef="let row; columns: columnsForTable" mat-row></tr>
28-
<tr *matFooterRowDef="columnsForTable" mat-footer-row></tr>
28+
<tr *matFooterRowDef="columnsForTable" mat-footer-row [hidden]="!dataSource.data?.length"></tr>
2929

3030
<ng-container matColumnDef="edit">
3131
<th *matHeaderCellDef mat-header-cell></th>

client/app/profile/components/services/services.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ <h2 class="mat-headline-5 nat-no-margin-bottom">Demandes en attente</h2>
9494
<table mat-table [dataSource]="pendingApplicationsDS">
9595
<tr *matHeaderRowDef="applicationsColumns" mat-header-row></tr>
9696
<tr *matRowDef="let row; columns: applicationsColumns" mat-row></tr>
97-
<tr *matFooterRowDef="applicationsColumns" mat-footer-row></tr>
97+
<tr
98+
*matFooterRowDef="applicationsColumns"
99+
mat-footer-row
100+
[hidden]="!pendingApplicationsDS.data?.length"
101+
></tr>
98102

99103
<ng-container matColumnDef="name">
100104
<th *matHeaderCellDef mat-header-cell>Nom</th>

client/app/user/components/register/register.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ <h2 class="mat-headline-6">Cotisation</h2>
107107
<table mat-table [dataSource]="mandatoryBookables">
108108
<tr *matHeaderRowDef="['name', 'initialPrice', 'periodicPrice']" mat-header-row></tr>
109109
<tr *matRowDef="let row; columns: ['name', 'initialPrice', 'periodicPrice']" mat-row></tr>
110-
<tr *matFooterRowDef="['name', 'initialPrice', 'periodicPrice']" mat-footer-row></tr>
110+
<tr
111+
*matFooterRowDef="['name', 'initialPrice', 'periodicPrice']"
112+
mat-footer-row
113+
[hidden]="!mandatoryBookables.data?.length"
114+
></tr>
111115

112116
<ng-container matColumnDef="name">
113117
<th *matHeaderCellDef mat-header-cell>Nom</th>

0 commit comments

Comments
 (0)