Merge branch 'playlistarrow' into 'develop'

Fix #681: hide Pagination component if only 1 page of content

See merge request funkwhale/funkwhale!562
This commit is contained in:
Eliot Berriot 2019-01-25 13:41:38 +01:00
commit c4b8f85a2c
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
Hide pagination when there is only one page of results (#681)

View File

@ -1,5 +1,5 @@
<template>
<div class="ui pagination menu" role="navigation" :aria-label="labels.pagination">
<div v-if='maxPage > 1' class="ui pagination menu" role="navigation" :aria-label="labels.pagination">
<a href
:disabled="current - 1 < 1"
@click.prevent.stop="selectPage(current - 1)"
@ -13,7 +13,7 @@
{{ page }}
</a href>
<div v-else class="disabled item">
...
</div>
</template>
<a href