mirror of
https://github.com/filegator/filegator.git
synced 2025-10-27 20:42:00 +01:00
* Make pagination configurable in configuration * Set pagination defaults in store * Add documentation of pagination
23 lines
440 B
Vue
23 lines
440 B
Vue
<template>
|
|
<div>
|
|
<b-select :value="perpage" size="is-small" @input="$emit('selected', $event)">
|
|
<option
|
|
v-for="page in this.$store.state.config.pagination"
|
|
:key="page"
|
|
:value="page"
|
|
>
|
|
{{ page === '' ? lang('No pagination') : lang('Per page', page) }}
|
|
</option>
|
|
</b-select>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
name: 'Pagination',
|
|
props: [ 'perpage' ]
|
|
}
|
|
</script>
|
|
|