Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 1 | <template> |
| 2 | <div class="mt-2 d-flex flex-column justify-content-end"> |
| 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> |
| 18 | export default { |
| 19 | props: { |
| 20 | filteredItemsCount: { |
| 21 | type: Number, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 22 | required: true, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 23 | }, |
| 24 | totalNumberOfCells: { |
| 25 | type: Number, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 26 | required: true, |
| 27 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 28 | }, |
| 29 | computed: { |
| 30 | filterActive() { |
| 31 | return this.filteredItemsCount !== this.totalNumberOfCells; |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame] | 32 | }, |
| 33 | }, |
Sukanya Pandey | 9901096 | 2020-07-27 21:44:47 +0530 | [diff] [blame] | 34 | }; |
| 35 | </script> |