Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2dfb7e88
Commit
2dfb7e88
authored
Dec 15, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pageNum is now camelCased
parent
3f21b957
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
app/assets/javascripts/vue_pagination/index.js.es6
app/assets/javascripts/vue_pagination/index.js.es6
+7
-7
No files found.
app/assets/javascripts/vue_pagination/index.js.es6
View file @
2dfb7e88
...
...
@@ -18,7 +18,7 @@
],
methods: {
changePage(e) {
let page
n
um = this.pageInfo.page;
let page
N
um = this.pageInfo.page;
let apiScope = gl.getParameterByName('scope');
if (!apiScope) apiScope = 'all';
...
...
@@ -29,18 +29,18 @@
if (text === SPREAD) {
return;
} else if (text === LAST) {
page
n
um = totalPages;
page
N
um = totalPages;
} else if (text === NEXT) {
page
n
um = nextPage;
page
N
um = nextPage;
} else if (text === PREV) {
page
n
um = previousPage;
page
N
um = previousPage;
} else if (text === FIRST) {
page
n
um = 1;
page
N
um = 1;
} else {
page
n
um = +text;
page
N
um = +text;
}
this.change(page
n
um, apiScope);
this.change(page
N
um, apiScope);
},
},
computed: {
...
...
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