Skip to content

Commit dfcc603

Browse files
authored
Merge pull request #2596 from Akshat55/issue.2199
fix: Update template for pagesUnknown state
2 parents 86dfd8e + c6b577b commit dfcc603

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pagination/pagination.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ export interface PaginationTranslations {
106106
</div>
107107
108108
<div *ngIf="!skeleton" class="cds--pagination__right">
109+
<span *ngIf="pagesUnknown" class="cds--pagination__text cds--pagination__page-text">
110+
<ng-container *ngIf="!showPageInput">{{currentPage}}</ng-container>
111+
{{pageText.subject | async}}
112+
</span>
109113
<ng-container *ngIf="showPageInput">
110114
<div
111115
class="cds--select cds--select--inline cds--select__page-number"
@@ -147,10 +151,6 @@ export interface PaginationTranslations {
147151
<ng-container *ngIf="!showPageInput">{{currentPage}}</ng-container>
148152
{{ofLastPagesText.subject | i18nReplace: {last: lastPage} | async}}
149153
</span>
150-
<span *ngIf="pagesUnknown" class="cds--pagination__text">
151-
<ng-container *ngIf="!showPageInput">{{currentPage}}</ng-container>
152-
{{pageText.subject | async}} {{currentPage}}
153-
</span>
154154
<div class="cds--pagination__control-buttons">
155155
<button
156156
cdsButton="ghost"

0 commit comments

Comments
 (0)