Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 1 | //import i18n from '@/i18n'; |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 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, |
Ed Tanous | 7d6b44c | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 23 | //text: i18n.$t('global.table.viewAll'), |
| 24 | text: 'global.table.viewAll', |
SurenNeware | ba91c49 | 2020-10-27 14:18:54 +0530 | [diff] [blame] | 25 | }, |
| 26 | ]; |
| 27 | const BVPaginationMixin = { |
Yoshie Muranaka | f9832b0 | 2020-05-12 12:04:46 -0700 | [diff] [blame] | 28 | methods: { |
| 29 | getTotalRowCount(count) { |
| 30 | return this.perPage === 0 ? 0 : count; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 31 | }, |
| 32 | }, |
Yoshie Muranaka | f9832b0 | 2020-05-12 12:04:46 -0700 | [diff] [blame] | 33 | }; |
| 34 | |
| 35 | export default BVPaginationMixin; |