Hide pagination when isLoading is true

- hide pagination
- add test
parent 99b76451
...@@ -327,6 +327,7 @@ export default { ...@@ -327,6 +327,7 @@ export default {
</gl-table> </gl-table>
<gl-pagination <gl-pagination
v-if="!isLoading"
ref="pagination" ref="pagination"
v-model="currentPage" v-model="currentPage"
:per-page="tagsPagination.perPage" :per-page="tagsPagination.perPage"
......
...@@ -66,6 +66,10 @@ describe('Details Page', () => { ...@@ -66,6 +66,10 @@ describe('Details Page', () => {
it('does not have list items', () => { it('does not have list items', () => {
expect(findFirstRowItem('rowCheckbox').exists()).toBe(false); expect(findFirstRowItem('rowCheckbox').exists()).toBe(false);
}); });
it('does not show pagination', () => {
expect(findPagination().exists()).toBe(false);
});
}); });
describe('table', () => { describe('table', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment