gitlab-org--gitlab-foss/app/assets/javascripts/groups/components/groups.vue

37 lines
686 B
Vue
Raw Normal View History

<script>
2017-05-22 17:47:05 +00:00
import TablePaginationComponent from '~/vue_shared/components/table_pagination';
export default {
2017-05-22 17:47:05 +00:00
components: {
'gl-pagination': TablePaginationComponent,
},
props: {
groups: {
type: Object,
required: true,
},
2017-05-22 17:47:05 +00:00
pageInfo: {
type: Object,
required: true,
},
},
methods: {
change(pageNumber) {
const param = gl.utils.setParamInURL('page', pageNumber);
gl.utils.visitUrl(param);
return param;
},
},
};
</script>
<template>
<div class="groups-list-tree-container">
<group-folder :groups="groups" />
2017-05-22 17:47:05 +00:00
<gl-pagination
:change="change"
:pageInfo="pageInfo" />
2017-05-09 23:10:19 +00:00
</div>
</template>