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:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-09 18:10:16 +0300
committerFilipa Lacerda <filipa@gitlab.com>2017-02-12 16:59:27 +0300
commit595afed2e3de93d1685b2f77dd8e72df2781a57b (patch)
treea88d7a3f7835c81e5134c577476ba363bf6c7634 /app/assets/javascripts/vue_shared
parentfb35980893f918f7dbad0f433447c6df13a1c757 (diff)
Integrates pagination component with API
Adds pagination tests Remove misplaced comment Fix broken store test
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r--app/assets/javascripts/vue_shared/components/table_pagination.js.es64
1 files changed, 1 insertions, 3 deletions
diff --git a/app/assets/javascripts/vue_shared/components/table_pagination.js.es6 b/app/assets/javascripts/vue_shared/components/table_pagination.js.es6
index 67c6cb73761..d8042a9b7fc 100644
--- a/app/assets/javascripts/vue_shared/components/table_pagination.js.es6
+++ b/app/assets/javascripts/vue_shared/components/table_pagination.js.es6
@@ -57,9 +57,7 @@ window.Vue = require('vue');
},
methods: {
changePage(e) {
- let apiScope = gl.utils.getParameterByName('scope');
-
- if (!apiScope) apiScope = 'all';
+ const apiScope = gl.utils.getParameterByName('scope');
const text = e.target.innerText;
const { totalPages, nextPage, previousPage } = this.pageInfo;