summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/releases/components/releases_pagination.vue
blob: 062c72b445bcc3d897dce4e80db07d8ad07fb888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<script>
import { mapGetters } from 'vuex';
import ReleasesPaginationGraphql from './releases_pagination_graphql.vue';
import ReleasesPaginationRest from './releases_pagination_rest.vue';

export default {
  name: 'ReleasesPagination',
  components: { ReleasesPaginationGraphql, ReleasesPaginationRest },
  computed: {
    ...mapGetters(['useGraphQLEndpoint']),
  },
};
</script>

<template>
  <div class="gl-display-flex gl-justify-content-center">
    <releases-pagination-graphql v-if="useGraphQLEndpoint" />
    <releases-pagination-rest v-else />
  </div>
</template>