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
47e64589
Commit
47e64589
authored
Feb 03, 2019
by
Xiaoyu Yang
Browse files
fix private questions
parent
1ed5e13a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/app/authorlist/authorlist.component.ts
src/app/authorlist/authorlist.component.ts
+1
-1
src/app/booklist/booklist.component.ts
src/app/booklist/booklist.component.ts
+1
-1
src/app/status-bar/status-bar.component.ts
src/app/status-bar/status-bar.component.ts
+1
-1
No files found.
src/app/authorlist/authorlist.component.ts
View file @
47e64589
...
...
@@ -23,7 +23,7 @@ export class AuthorlistComponent implements OnChanges {
return
Math
.
floor
((
itemsCount
-
1
)
/
itemsPerPage
)
+
1
;
}
private
setPage
(
pageNumber
:
number
)
{
setPage
(
pageNumber
:
number
)
{
this
.
currentPage
=
pageNumber
;
this
.
displayedAuthors
=
this
.
authors
.
slice
((
pageNumber
-
1
)
*
this
.
ITEM_PER_PAGE
,
pageNumber
*
this
.
ITEM_PER_PAGE
);
...
...
src/app/booklist/booklist.component.ts
View file @
47e64589
...
...
@@ -23,7 +23,7 @@ export class BooklistComponent implements OnChanges {
return
Math
.
floor
((
itemsCount
-
1
)
/
itemsPerPage
)
+
1
;
}
private
setPage
(
pageNumber
:
number
)
{
setPage
(
pageNumber
:
number
)
{
this
.
currentPage
=
pageNumber
;
this
.
displayedBooks
=
this
.
books
.
slice
((
pageNumber
-
1
)
*
this
.
ITEM_PER_PAGE
,
pageNumber
*
this
.
ITEM_PER_PAGE
);
...
...
src/app/status-bar/status-bar.component.ts
View file @
47e64589
...
...
@@ -15,7 +15,7 @@ export class StatusBarComponent implements DoCheck {
isAdmin
:
boolean
;
constructor
(
private
router
:
Router
,
router
:
Router
,
private
authenticationService
:
AuthenticationService
)
{
}
...
...
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