Skip to content

Commit

Permalink
fix(form): fix affichage number
Browse files Browse the repository at this point in the history
  • Loading branch information
mmohadIGN committed Jun 14, 2024
1 parent bee3a2a commit 9613f88
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions libs/feature/record/src/lib/ign-api-dl/ign-api-dl.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,19 @@
class="sticky z-10 top-0 text-sm leading-6 font-semibold text-slate-700 bg-white p-0 dark:bg-slate-900 dark:text-slate-300"
>
<div
*ngIf="pageSize$.value < (numberFilteredProduct$ | async)"
*ngIf="numberFilteredProduct$ | async as numberFilteredProduct"
class="py-2 pr-2 text-xl border-b border-slate-200 dark:border-slate-400/20"
>
Produits ({{ size$.value }}/{{
numberFilteredProduct$ | async
}}):
</div>
<div
*ngIf="pageSize$.value > (numberFilteredProduct$ | async)"
class="py-2 pr-2 text-xl border-b border-slate-200 dark:border-slate-400/20"
>
Produits ({{ numberFilteredProduct$ | async }}/{{
numberFilteredProduct$ | async
}}):
<div *ngIf="size$.value < numberFilteredProduct">
Produits ({{ size$.value }}/{{
numberFilteredProduct$ | async
}}):
</div>
<div *ngIf="size$.value > numberFilteredProduct">
Produits ({{ numberFilteredProduct$ | async }}/{{
numberFilteredProduct$ | async
}}):
</div>
</div>
</tr>
</thead>
Expand All @@ -94,7 +93,7 @@
</tr>
<tr>
<button
*ngIf="pageSize$.value < (numberFilteredProduct$ | async)"
*ngIf="size$.value < (numberFilteredProduct$ | async)"
(click)="moreResult()"
class="bg-primary-opacity-50 inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded capitalize text-primary-lightest hover:bg-primary transition-colors"
>
Expand Down

0 comments on commit 9613f88

Please sign in to comment.