From 6da0b4b49354b7bc9611518f81a4ef936bfff268 Mon Sep 17 00:00:00 2001
From: AlexeyPortnyagin <157355194+AlexeyPortnyagin@users.noreply.github.com>
Date: Thu, 28 Mar 2024 14:15:51 +0500
Subject: [PATCH] fix(addon-table): added a check that `total` is zero (#7111)

---
 .../table-pagination/table-pagination.template.html           | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/projects/addon-table/components/table-pagination/table-pagination.template.html b/projects/addon-table/components/table-pagination/table-pagination.template.html
index bc7ed1e9bed5..aab743e4a029 100644
--- a/projects/addon-table/components/table-pagination/table-pagination.template.html
+++ b/projects/addon-table/components/table-pagination/table-pagination.template.html
@@ -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">