Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-04-18 10:59:16 +0300
committerPhil Hughes <me@iamphill.com>2017-04-18 10:59:16 +0300
commit4a129ececfd0e23fff117379782e3fd3761b74ef (patch)
tree3ad5ae584de41a8b929351b98c4581ecc95e8c9f /app/assets/javascripts/boards
parent6e21728d9549ee100ce6c5d869ba190477d4cb8d (diff)
Moved per page value to const
Diffstat (limited to 'app/assets/javascripts/boards')
-rw-r--r--app/assets/javascripts/boards/models/list.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/boards/models/list.js b/app/assets/javascripts/boards/models/list.js
index d83006ebe1a..f2b79a88a4a 100644
--- a/app/assets/javascripts/boards/models/list.js
+++ b/app/assets/javascripts/boards/models/list.js
@@ -3,6 +3,8 @@
/* global ListLabel */
import queryData from '../utils/query_data';
+const PER_PAGE = 20;
+
class List {
constructor (obj) {
this.id = obj.id;
@@ -58,7 +60,7 @@ class List {
nextPage () {
if (this.issuesSize > this.issues.length) {
- if (this.issues.length / 20 >= 1) {
+ if (this.issues.length / PER_PAGE >= 1) {
this.page += 1;
}