Open source personal finance application
fix(TrnForm): highlight right classes
Ilya Komicheva3ad368643bd
diff --git a/app/components/trnForm/Main.vue b/app/components/trnForm/Main.vueindex f5aa7e2d..eeb79386 100644--- a/app/components/trnForm/Main.vue+++ b/app/components/trnForm/Main.vue@@ -169,7 +169,7 @@ const actions = computed(() => ({v-if="trnsFormStore.values.trnType !== 2":amount="trnsFormStore.values.amount[trnsFormStore.activeAmountIdx]":amountRaw="trnsFormStore.values.amountRaw[trnsFormStore.activeAmountIdx]"- :highlight="trnsFormStore.values.trnType === 0 ? 'income' : 'expense'"+ :highlight="trnsFormStore.values.trnType === 0 ? 'expense' : 'income'":isShowSum="trnsFormStore.getIsShowSum()"class="px-3 pb-2"@onChange="trnsFormStore.onChangeAmount"diff --git a/app/components/trnForm/main/Input.vue b/app/components/trnForm/main/Input.vueindex 47099390..332e2b6f 100644--- a/app/components/trnForm/main/Input.vue+++ b/app/components/trnForm/main/Input.vue@@ -35,8 +35,8 @@ const { t } = useI18n()<FormInput:class="{- '!text-[#f92134] placeholder:!text-red-700/80': highlight === 'income',- '!text-[#2cad22] placeholder:!text-green-700/80': highlight === 'expense',+ '!text-income-1 placeholder:!text-income-1': highlight === 'income',+ '!text-expense-1 placeholder:!text-expense-1': highlight === 'expense','text-center': !isTransfer,}":placeholder="t('enterAmount')"