summaryrefslogtreecommitdiff
path: root/app/assets/javascripts
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2017-12-21 19:53:45 +0000
committerClement Ho <clemmakesapps@gmail.com>2017-12-21 19:53:45 +0000
commit539996f7daf9115f713c0802dea85c53c5f6838a (patch)
treee5dae9eb460081f68f538cbcf1fa2a6ddf0d5679 /app/assets/javascripts
parent4eb5c3a2447409bc5e81349d93f3138bd49f62ae (diff)
parente1f5c2b194fa8ee898446517f1802c6e28312b0b (diff)
downloadgitlab-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.vue8
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"