Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 1 | <template> |
SurenNeware | 787635a | 2020-11-24 22:42:42 +0530 | [diff] [blame] | 2 | <div class="mt-2"> |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 3 | <p v-if="!filterActive"> |
| 4 | {{ $t('global.table.items', { count: totalNumberOfCells }) }} |
| 5 | </p> |
| 6 | <p v-else> |
| 7 | {{ |
| 8 | $t('global.table.selectedItems', { |
| 9 | count: totalNumberOfCells, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 10 | filterCount: filteredItemsCount, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 11 | }) |
| 12 | }} |
| 13 | </p> |
| 14 | </div> |
| 15 | </template> |
| 16 | |
| 17 | <script> |
Ed Tanous | 883a0d5 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 18 | import { useI18n } from 'vue-i18n'; |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 19 | export default { |
| 20 | props: { |
| 21 | filteredItemsCount: { |
| 22 | type: Number, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 23 | required: true, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 24 | }, |
| 25 | totalNumberOfCells: { |
| 26 | type: Number, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 27 | required: true, |
| 28 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 29 | }, |
Ed Tanous | 883a0d5 | 2024-03-23 14:56:34 -0700 | [diff] [blame] | 30 | data() { |
| 31 | return { |
| 32 | $t: useI18n().t, |
| 33 | }; |
| 34 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 35 | computed: { |
| 36 | filterActive() { |
| 37 | return this.filteredItemsCount !== this.totalNumberOfCells; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 38 | }, |
| 39 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 40 | }; |
| 41 | </script> |