summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vue_shared
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-02-28 23:55:09 +0000
committerAlfredo Sumaran <alfredo@gitlab.com>2017-02-28 23:55:09 +0000
commitc15028b1b87eafbb1cd9ed658e7ac8877ae4f67e (patch)
tree2b3cb2763c708c67491909c0acd163b8994557fe /app/assets/javascripts/vue_shared
parentb2d5869e08f9f4a790b61f53007b3ff0a467ebc9 (diff)
parent548a0b6a133e77995923c3c644328b42ec917ce9 (diff)
downloadgitlab-ce-c15028b1b87eafbb1cd9ed658e7ac8877ae4f67e.tar.gz
Merge branch '28818-tech-debt-pipelines-pagination' into 'master'
Pagination only changes the page parameter. Closes #28818 See merge request !9581
Diffstat (limited to 'app/assets/javascripts/vue_shared')
-rw-r--r--app/assets/javascripts/vue_shared/components/table_pagination.js.es616
1 files changed, 7 insertions, 9 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 d8042a9b7fc..dd046405575 100644
--- a/app/assets/javascripts/vue_shared/components/table_pagination.js.es6
+++ b/app/assets/javascripts/vue_shared/components/table_pagination.js.es6
@@ -23,8 +23,8 @@ window.Vue = require('vue');
Here is an example `change` method:
- change(pagenum, apiScope) {
- gl.utils.visitUrl(`?scope=${apiScope}&p=${pagenum}`);
+ change(pagenum) {
+ gl.utils.visitUrl(`?page=${pagenum}`);
},
*/
@@ -57,8 +57,6 @@ window.Vue = require('vue');
},
methods: {
changePage(e) {
- const apiScope = gl.utils.getParameterByName('scope');
-
const text = e.target.innerText;
const { totalPages, nextPage, previousPage } = this.pageInfo;
@@ -66,19 +64,19 @@ window.Vue = require('vue');
case SPREAD:
break;
case LAST:
- this.change(totalPages, apiScope);
+ this.change(totalPages);
break;
case NEXT:
- this.change(nextPage, apiScope);
+ this.change(nextPage);
break;
case PREV:
- this.change(previousPage, apiScope);
+ this.change(previousPage);
break;
case FIRST:
- this.change(1, apiScope);
+ this.change(1);
break;
default:
- this.change(+text, apiScope);
+ this.change(+text);
break;
}
},