diff options
author | Clement Ho <clemmakesapps@gmail.com> | 2017-12-21 19:53:45 +0000 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2017-12-21 19:53:45 +0000 |
commit | 539996f7daf9115f713c0802dea85c53c5f6838a (patch) | |
tree | e5dae9eb460081f68f538cbcf1fa2a6ddf0d5679 /app/assets/javascripts | |
parent | 4eb5c3a2447409bc5e81349d93f3138bd49f62ae (diff) | |
parent | e1f5c2b194fa8ee898446517f1802c6e28312b0b (diff) | |
download | gitlab-ce-539996f7daf9115f713c0802dea85c53c5f6838a.tar.gz |
Merge branch '33609-hide-pagination' into 'master'
Do not show Vue pagination if only one page
Closes #33609
See merge request gitlab-org/gitlab-ce!15999
Diffstat (limited to 'app/assets/javascripts')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/table_pagination.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/table_pagination.vue b/app/assets/javascripts/vue_shared/components/table_pagination.vue index 710452bb3d3..33096b53cf8 100644 --- a/app/assets/javascripts/vue_shared/components/table_pagination.vue +++ b/app/assets/javascripts/vue_shared/components/table_pagination.vue @@ -122,11 +122,17 @@ export default { return items; }, + showPagination() { + return this.pageInfo.totalPages > 1; + }, }, }; </script> <template> - <div class="gl-pagination"> + <div + v-if="showPagination" + class="gl-pagination" + > <ul class="pagination clearfix"> <li v-for="item in getItems" |