From 42a9e8dc826f6642b0325078356f22203df0ea99 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Tue, 12 Nov 2024 21:26:33 +0530 Subject: [PATCH] chore: Minor fix --- .../components-next/Contacts/ContactsLayout.vue | 1 + .../pagination/PaginationFooter.vue | 17 ++++++++++++----- .../phonenumberinput/PhoneNumberInput.vue | 4 +--- .../dashboard/i18n/locale/en/contact.json | 3 +++ 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/javascript/dashboard/components-next/Contacts/ContactsLayout.vue b/app/javascript/dashboard/components-next/Contacts/ContactsLayout.vue index 8a313dec9..981b6f10a 100644 --- a/app/javascript/dashboard/components-next/Contacts/ContactsLayout.vue +++ b/app/javascript/dashboard/components-next/Contacts/ContactsLayout.vue @@ -179,6 +179,7 @@ const updateCurrentPage = page => { class="sticky bottom-0 z-10 px-4 pb-4" > { }; const currentPageInformation = computed(() => { - return t('PAGINATION_FOOTER.SHOWING', { - startItem: startItem.value, - endItem: endItem.value, - totalItems: props.totalItems, - }); + return t( + props.currentPageInfo ? props.currentPageInfo : 'PAGINATION_FOOTER.SHOWING', + { + startItem: startItem.value, + endItem: endItem.value, + totalItems: props.totalItems, + } + ); }); const pageInfo = computed(() => { diff --git a/app/javascript/dashboard/components-next/phonenumberinput/PhoneNumberInput.vue b/app/javascript/dashboard/components-next/phonenumberinput/PhoneNumberInput.vue index c43264c57..92f9a77e6 100644 --- a/app/javascript/dashboard/components-next/phonenumberinput/PhoneNumberInput.vue +++ b/app/javascript/dashboard/components-next/phonenumberinput/PhoneNumberInput.vue @@ -37,7 +37,6 @@ const emit = defineEmits(['update:modelValue']); const { t } = useI18n(); -const phoneInputRef = ref(null); const hasInputFocused = ref(false); const showDropdown = ref(false); const searchQuery = ref(''); @@ -179,7 +178,6 @@ watch( :class="[inputBorderClass, { 'cursor-not-allowed opacity-50': disabled }]" >