diff options
author | Adriel Santiago <adriel@gitlab.com> | 2018-09-10 22:36:09 +0300 |
---|---|---|
committer | Adriel Santiago <adriel@gitlab.com> | 2018-09-12 04:16:43 +0300 |
commit | 106640e031c92813803c98674e0304a91ce07db4 (patch) | |
tree | 4bc70c7992cb0c5251002babd24d966f68cc068d /app/assets/javascripts/groups/components | |
parent | 32062a9154763aedfcbdb821898b83884a1bcd2c (diff) |
Use GitLab ui pagination component for groups
Diffstat (limited to 'app/assets/javascripts/groups/components')
-rw-r--r-- | app/assets/javascripts/groups/components/groups.vue | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/app/assets/javascripts/groups/components/groups.vue b/app/assets/javascripts/groups/components/groups.vue index a1beb222950..81b2e5ea37b 100644 --- a/app/assets/javascripts/groups/components/groups.vue +++ b/app/assets/javascripts/groups/components/groups.vue @@ -1,11 +1,11 @@ <script> -import tablePagination from '~/vue_shared/components/table_pagination.vue'; +import PaginationLinks from '~/vue_shared/components/pagination_links.vue'; import eventHub from '../event_hub'; import { getParameterByName } from '../../lib/utils/common_utils'; export default { components: { - tablePagination, + PaginationLinks, }, props: { groups: { @@ -49,15 +49,18 @@ export default { > {{ searchEmptyMessage }} </div> - <group-folder - v-if="!searchEmpty" - :groups="groups" - :action="action" - /> - <table-pagination - v-if="!searchEmpty" - :change="change" - :page-info="pageInfo" - /> + <template + v-else + > + <group-folder + :groups="groups" + :action="action" + /> + <pagination-links + :change="change" + :page-info="pageInfo" + class="d-flex justify-content-center prepend-top-default" + /> + </template> </div> </template> |