diff --git a/src/components/transactions/TransactionFormContent.vue b/src/components/transactions/TransactionFormContent.vue index 88e33a6..809c857 100644 --- a/src/components/transactions/TransactionFormContent.vue +++ b/src/components/transactions/TransactionFormContent.vue @@ -311,12 +311,13 @@ const resetForm = () => { const dateErrorMessage = computed(() => { + if (editedTransaction.value?.category.type.code == 'INCOME') {} if (editedTransaction.value.type.code != 'PLANNED' && editedTransaction.value.date > new Date()) { return 'При мгновенных тратах дата должна быть меньше текущей!' } else if (editedTransaction.value.type.code == 'PLANNED' && editedTransaction.value.date < new Date()) { - return 'При плановых тратах дата должна быть больше текущей!' + return 'Внимание! При плановых тратах дата должна быть больше текущей!' } else { return '' @@ -408,8 +409,8 @@ onMounted(async () => {
+ class="absolute left-0 right-0 overflow-y-auto z-50 border-b-4 border-x rounded-b-lg bg-white shadow-lg transition-all duration-500" + :class="{ 'max-h-0': !isCategorySelectorOpened, 'max-h-[500px]': isCategorySelectorOpened, 'top-[600%]': selectedCategoryType.code=='EXPENSE', 'top-[400%]': selectedCategoryType.code=='INCOME' }">
-