Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Open sidebar
w.pan
bookle
Commits
6d7dc441
Commit
6d7dc441
authored
Feb 03, 2019
by
Xiaoyu Yang
Browse files
setpage not private
parent
5bd83b09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/app/admin-booklist/admin-booklist.component.ts
src/app/admin-booklist/admin-booklist.component.ts
+1
-1
No files found.
src/app/admin-booklist/admin-booklist.component.ts
View file @
6d7dc441
...
@@ -23,7 +23,7 @@ export class AdminBooklistComponent {
...
@@ -23,7 +23,7 @@ export class AdminBooklistComponent {
return
Math
.
floor
((
itemsCount
-
1
)
/
itemsPerPage
)
+
1
;
return
Math
.
floor
((
itemsCount
-
1
)
/
itemsPerPage
)
+
1
;
}
}
private
setPage
(
pageNumber
:
number
)
{
setPage
(
pageNumber
:
number
)
{
this
.
currentPage
=
pageNumber
;
this
.
currentPage
=
pageNumber
;
this
.
displayedBooks
=
this
.
displayedBooks
=
this
.
books
.
slice
((
pageNumber
-
1
)
*
this
.
ITEM_PER_PAGE
,
pageNumber
*
this
.
ITEM_PER_PAGE
);
this
.
books
.
slice
((
pageNumber
-
1
)
*
this
.
ITEM_PER_PAGE
,
pageNumber
*
this
.
ITEM_PER_PAGE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment