Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
7e997aad
Unverified
Commit
7e997aad
authored
Sep 12, 2021
by
tsh96
Committed by
GitHub
Sep 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: resolve admin pages pagination bug (#4280)
parent
d72aad52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
admin-pages.vue
client/components/admin/admin-pages.vue
+2
-3
No files found.
client/components/admin/admin-pages.vue
View file @
7e997aad
...
...
@@ -61,6 +61,7 @@
sort-by='updatedAt',
sort-desc,
hide-default-footer
@page-count="pageTotal = $event"
)
template(slot='item', slot-scope='props')
tr.is-clickable(:active='props.selected', @click='$router.push(`/pages/` + props.item.id)')
...
...
@@ -89,6 +90,7 @@ export default {
selectedPage
:
{},
pagination
:
1
,
pages
:
[],
pageTotal
:
0
,
headers
:
[
{
text
:
'ID'
,
value
:
'id'
,
width
:
80
,
sortable
:
true
},
{
text
:
'Title'
,
value
:
'title'
},
...
...
@@ -108,9 +110,6 @@ export default {
}
},
computed
:
{
pageTotal
()
{
return
Math
.
ceil
(
this
.
filteredPages
.
length
/
15
)
},
filteredPages
()
{
return
_
.
filter
(
this
.
pages
,
pg
=>
{
if
(
this
.
selectedLang
!==
null
&&
this
.
selectedLang
!==
pg
.
locale
)
{
...
...
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