This website works better with JavaScript.
Home
Explore
Help
Sign In
ayan.poddar
/
eShopOnContainers
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
19
Wiki
Activity
Browse Source
Fix WebSPA pager display (
#1629
)
pull/1636/head
n-stefan
3 years ago
committed by
GitHub
parent
873cdf8cef
commit
68f5afd09c
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
1 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/Web/WebSPA/Client/modules/catalog/catalog.component.ts
+0
-2
src/Web/WebSPA/Client/modules/shared/components/pager/pager.ts
+ 1
- 1
src/Web/WebSPA/Client/modules/catalog/catalog.component.ts
View File
@ -95,7 +95,7 @@ export class CatalogComponent implements OnInit {
itemsPage
:
catalog.pageSize
,
totalItems
:
catalog.count
,
totalPages
:
Math.ceil
(
catalog
.
count
/
catalog
.
pageSize
)
,
items
:
catalog.
pageSize
items
:
catalog.
data.length
}
;
}
)
;
}
+ 0
- 2
src/Web/WebSPA/Client/modules/shared/components/pager/pager.ts
View File
@ -25,8 +25,6 @@ export class Pager implements OnInit, OnChanges {
ngOnChanges() {
if
(
this
.
model
)
{
this
.
model
.
items
=
(
this
.
model
.
itemsPage
>
this
.
model
.
totalItems
)
?
this
.
model.totalItems
:
this.model.itemsPage
;
this
.
buttonStates
.
previousDisabled
=
(
this
.
model
.
actualPage
==
0
)
;
this
.
buttonStates
.
nextDisabled
=
(
this
.
model
.
actualPage
+
1
>=
this
.
model
.
totalPages
)
;
}
Write
Preview
Loading…
Cancel
Save