fix .env.production
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
|
||||
import {DatePicker, Divider, InputNumber, SelectButton} from "primevue";
|
||||
import {DatePicker, Divider, InputNumber} from "primevue";
|
||||
import ConfirmDialog from "@/components/ConfirmDialog.vue";
|
||||
import {useRoute, useRouter} from "vue-router";
|
||||
import {useToolbarStore} from "@/stores/toolbar-store";
|
||||
@@ -110,14 +110,14 @@ const fetchData = async () => {
|
||||
}
|
||||
|
||||
const validateForm = (): boolean => {
|
||||
if (!transactionType.value) {
|
||||
isTypeError.value = true;
|
||||
return false;
|
||||
}
|
||||
if (!transactionKind.value) {
|
||||
isKindError.value = true;
|
||||
return false;
|
||||
}
|
||||
// if (!transactionType.value) {
|
||||
// isTypeError.value = true;
|
||||
// return false;
|
||||
// }
|
||||
// if (!transactionKind.value) {
|
||||
// isKindError.value = true;
|
||||
// return false;
|
||||
// }
|
||||
if (!transactionCategory.value) {
|
||||
isCategoryError.value = true
|
||||
return false
|
||||
@@ -141,10 +141,11 @@ const buildUpdate = (): UpdateTransactionDTO => {
|
||||
if (validateForm()) {
|
||||
return {
|
||||
type: transactionType.value,
|
||||
kind: transactionKind.value,
|
||||
kind: transactionDate.value < new Date() ? TransactionKind.INSTANT : TransactionKind.PLANNING,
|
||||
categoryId: transactionCategory.value.id,
|
||||
comment: transactionComment.value,
|
||||
amount: transactionAmount.value,
|
||||
fees: null,
|
||||
isDone: isDone.value,
|
||||
date: transactionDate.value
|
||||
} as UpdateTransactionDTO
|
||||
@@ -157,7 +158,7 @@ const buildCreate = (): CreateTransactionDTO => {
|
||||
if (validateForm()) {
|
||||
return {
|
||||
type: transactionType.value,
|
||||
kind: transactionKind.value,
|
||||
kind: transactionDate.value < new Date() ? TransactionKind.INSTANT : TransactionKind.PLANNING,
|
||||
categoryId: transactionCategory.value.id,
|
||||
comment: transactionComment.value,
|
||||
amount: transactionAmount.value,
|
||||
@@ -350,13 +351,13 @@ onMounted(async () => {
|
||||
<!-- optionValue="value"-->
|
||||
<!-- class="!w-full !items-center !justify-center !border-none "/>-->
|
||||
<!-- </div>-->
|
||||
<div class="card flex flex-col w-full items-center justify-center">
|
||||
<!-- <div class="card flex flex-col w-full items-center justify-center">-->
|
||||
|
||||
<span class="text-lg hidden lg:flex">Вид транзакции</span>
|
||||
<SelectButton v-model="transactionKind" :options="optionsKind" optionLabel="label"
|
||||
optionValue="value"
|
||||
class="!w-full !items-center !justify-center !border-none "/>
|
||||
</div>
|
||||
<!-- <span class="text-lg hidden lg:flex">Вид транзакции</span>-->
|
||||
<!-- <SelectButton v-model="transactionKind" :options="optionsKind" optionLabel="label"-->
|
||||
<!-- optionValue="value"-->
|
||||
<!-- class="!w-full !items-center !justify-center !border-none "/>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<label class="!font-semibold text-gray-600 pl-2">Transaction name</label>
|
||||
|
||||
Reference in New Issue
Block a user