Commit b531223a authored by Ben Hong's avatar Ben Hong

feature (#13): Ensure pagination only appears under correct circumstances

parent 1b6f75b6
......@@ -53,12 +53,18 @@ export default {
</li>
</ul>
<button @click="previousPage"
<button v-show="displayRange.start !== 0"
@click="previousPage"
type="button"
>
Previous
</button>
<button type="button" @click="nextPage">Next</button>
<button v-show="displayRange.end < filteredList.length"
@click="nextPage"
type="button"
>
Next
</button>
</div>
</template>
......
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