SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 1 | import i18n from '@/i18n'; |
| 2 | export const currentPage = 1; |
| 3 | export const perPage = 20; |
| 4 | export const itemsPerPageOptions = [ |
| 5 | { |
| 6 | value: 10, |
| 7 | text: '10', |
Yoshie Muranaka | f9832b0 | 2020-05-12 12:04:46 -0700 | [diff] [blame] | 8 | }, |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 9 | { |
| 10 | value: 20, |
| 11 | text: '20', |
| 12 | }, |
| 13 | { |
| 14 | value: 30, |
| 15 | text: '30', |
| 16 | }, |
| 17 | { |
| 18 | value: 40, |
| 19 | text: '40', |
| 20 | }, |
| 21 | { |
| 22 | value: 0, |
| 23 | text: i18n.t('global.table.viewAll'), |
| 24 | }, |
| 25 | ]; |
| 26 | const BVPaginationMixin = { |
Yoshie Muranaka | f9832b0 | 2020-05-12 12:04:46 -0700 | [diff] [blame] | 27 | methods: { |
| 28 | getTotalRowCount(count) { |
| 29 | return this.perPage === 0 ? 0 : count; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 30 | }, |
| 31 | }, |
Yoshie Muranaka | f9832b0 | 2020-05-12 12:04:46 -0700 | [diff] [blame] | 32 | }; |
| 33 | |
| 34 | export default BVPaginationMixin; |