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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
4a129ece
Commit
4a129ece
authored
Apr 18, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved per page value to const
parent
6e21728d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/assets/javascripts/boards/models/list.js
app/assets/javascripts/boards/models/list.js
+3
-1
No files found.
app/assets/javascripts/boards/models/list.js
View file @
4a129ece
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
/* global ListLabel */
/* global ListLabel */
import
queryData
from
'
../utils/query_data
'
;
import
queryData
from
'
../utils/query_data
'
;
const
PER_PAGE
=
20
;
class
List
{
class
List
{
constructor
(
obj
)
{
constructor
(
obj
)
{
this
.
id
=
obj
.
id
;
this
.
id
=
obj
.
id
;
...
@@ -58,7 +60,7 @@ class List {
...
@@ -58,7 +60,7 @@ class List {
nextPage
()
{
nextPage
()
{
if
(
this
.
issuesSize
>
this
.
issues
.
length
)
{
if
(
this
.
issuesSize
>
this
.
issues
.
length
)
{
if
(
this
.
issues
.
length
/
20
>=
1
)
{
if
(
this
.
issues
.
length
/
PER_PAGE
>=
1
)
{
this
.
page
+=
1
;
this
.
page
+=
1
;
}
}
...
...
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