blob: 75617093b74f215a09c7b6e2b2163906b1f103af [file] [log] [blame]
Sukanya Pandey99010962020-07-27 21:44:47 +05301<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 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>
18export default {
19 props: {
20 filteredItemsCount: {
21 type: Number,
Derick Montague602e98a2020-10-21 16:20:00 -050022 required: true,
Sukanya Pandey99010962020-07-27 21:44:47 +053023 },
24 totalNumberOfCells: {
25 type: Number,
Derick Montague602e98a2020-10-21 16:20:00 -050026 required: true,
27 },
Sukanya Pandey99010962020-07-27 21:44:47 +053028 },
29 computed: {
30 filterActive() {
31 return this.filteredItemsCount !== this.totalNumberOfCells;
Derick Montague602e98a2020-10-21 16:20:00 -050032 },
33 },
Sukanya Pandey99010962020-07-27 21:44:47 +053034};
35</script>