From 97f90589604965aab31814b35456d9e2c2945f15 Mon Sep 17 00:00:00 2001 From: Tanya Fomina Date: Sun, 17 Nov 2024 17:12:23 +0300 Subject: [PATCH] Fix visual problems --- .../modals/ChooseTariffPlanPopup.vue | 1 + .../modals/PaymentDetailsDialog.vue | 9 ++++--- src/components/utils/TariffPlan.vue | 25 ++++++++++++++++--- src/i18n/messages/en.json | 2 +- src/i18n/messages/ru.json | 4 +-- 5 files changed, 31 insertions(+), 10 deletions(-) diff --git a/src/components/modals/ChooseTariffPlanPopup.vue b/src/components/modals/ChooseTariffPlanPopup.vue index d3cfe1a68..5e0b18ff3 100644 --- a/src/components/modals/ChooseTariffPlanPopup.vue +++ b/src/components/modals/ChooseTariffPlanPopup.vue @@ -21,6 +21,7 @@ :name="plan.name" :limit="plan.eventsLimit" :price="plan.monthlyCharge" + :currency="plan.monthlyChargeCurrency" :selected="plan.id === selectedPlan.id" @click.native="selectPlan(plan.id)" /> diff --git a/src/components/modals/PaymentDetailsDialog.vue b/src/components/modals/PaymentDetailsDialog.vue index d98947a62..4724ddc39 100644 --- a/src/components/modals/PaymentDetailsDialog.vue +++ b/src/components/modals/PaymentDetailsDialog.vue @@ -64,7 +64,7 @@ {{ $t('common.price') }}
- {{ priceWithDollar }} + {{ price }}
@@ -194,6 +194,7 @@ import { PayWithCardInput } from '../../api/billing'; import { BusinessOperation } from '../../types/business-operation'; import { BusinessOperationStatus } from '../../types/business-operation-status'; import UiCheckboxWithLabel from '../forms/UiCheckboxWithLabel/UiCheckboxWithLabel.vue'; +import { getCurrencySign } from '@/utils'; /** * Id for the 'New card' option in select @@ -348,8 +349,8 @@ export default Vue.extend({ * * example: 100$ */ - priceWithDollar(): string { - return `${this.plan.monthlyCharge}$`; + price(): string { + return `${this.plan.monthlyCharge}${getCurrencySign(this.plan.monthlyChargeCurrency)}`; }, /** @@ -726,7 +727,7 @@ export default Vue.extend({ display: flex; &-button { - margin-right: 118px; + margin-right: auto; } &-cp-logo { diff --git a/src/components/utils/TariffPlan.vue b/src/components/utils/TariffPlan.vue index 34252f855..442b049e5 100644 --- a/src/components/utils/TariffPlan.vue +++ b/src/components/utils/TariffPlan.vue @@ -7,11 +7,11 @@ {{ name }}
- {{ limit | spacedNumber }} {{ $t('common.eventsPerMonth') }} + {{ limit | spacedNumber }} {{ $t('common.eventsPerMonth') }}