blob: 25730a3527f3bda9e6b53fb498f01d5f6f96807f [file] [log] [blame]
Sukanya Pandey99010962020-07-27 21:44:47 +05301<template>
SurenNeware787635a2020-11-24 22:42:42 +05302 <div class="mt-2">
Sukanya Pandey99010962020-07-27 21:44:47 +05303 <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 Montague602e98a2020-10-21 16:20:00 -050010 filterCount: filteredItemsCount,
Sukanya Pandey99010962020-07-27 21:44:47 +053011 })
12 }}
13 </p>
14 </div>
15</template>
16
17<script>
Ed Tanous883a0d52024-03-23 14:56:34 -070018import { useI18n } from 'vue-i18n';
Sukanya Pandey99010962020-07-27 21:44:47 +053019export default {
20 props: {
21 filteredItemsCount: {
22 type: Number,
Derick Montague602e98a2020-10-21 16:20:00 -050023 required: true,
Sukanya Pandey99010962020-07-27 21:44:47 +053024 },
25 totalNumberOfCells: {
26 type: Number,
Derick Montague602e98a2020-10-21 16:20:00 -050027 required: true,
28 },
Sukanya Pandey99010962020-07-27 21:44:47 +053029 },
Ed Tanous883a0d52024-03-23 14:56:34 -070030 data() {
31 return {
32 $t: useI18n().t,
33 };
34 },
Sukanya Pandey99010962020-07-27 21:44:47 +053035 computed: {
36 filterActive() {
37 return this.filteredItemsCount !== this.totalNumberOfCells;
Derick Montague602e98a2020-10-21 16:20:00 -050038 },
39 },
Sukanya Pandey99010962020-07-27 21:44:47 +053040};
41</script>