Added a v-if to disable the `<div>` if there is only one page of content

This commit is contained in:
Jo Vuit 2019-01-25 12:34:50 +01:00
parent fa1430d350
commit 247bfa0444
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
<template> <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 <a href
:disabled="current - 1 < 1" :disabled="current - 1 < 1"
@click.prevent.stop="selectPage(current - 1)" @click.prevent.stop="selectPage(current - 1)"