Skip to content

Commit

Permalink
fix(addon-table): added a check that total is zero (#7111)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPortnyagin authored Mar 28, 2024
1 parent 5353b44 commit 6da0b4b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
[(open)]="open"
>
<button
*ngIf="total !== 0; else zeroTotal"
tuiLink
type="button"
>
<strong>{{ start + 1 }}–{{ end }}</strong>
</button>
<ng-template #zeroTotal>
<strong>0 - 0</strong>
</ng-template>
<ng-template #content>
<tui-data-list size="s">
<ng-container *ngFor="let item of items">
Expand Down

0 comments on commit 6da0b4b

Please sign in to comment.