fix empty category
This commit is contained in:
@@ -354,18 +354,19 @@ 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-row w-full justify-between gap-4 ">
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<label class="!font-semibold text-gray-600 pl-2">Transaction name</label>
|
||||
<div class="flex card !justify-start !items-start !p-4 !pl-5 ">
|
||||
<input class="font-extralight w-full focus:outline-0" placeholder="Name"
|
||||
<label class="!font-semibold text-gray-600 pl-2">Transaction comment</label>
|
||||
<div class="flex card !justify-start !items-start !p-[1.11rem] !pl-5 ">
|
||||
<input class="font-extralight w-full focus:outline-0" placeholder="Comment"
|
||||
@input="transactionComment?.length ==0 ? isCommentError = true : isCommentError=false"
|
||||
v-model="transactionComment"/>
|
||||
</div>
|
||||
@@ -374,7 +375,7 @@ onMounted(async () => {
|
||||
</div>
|
||||
<div class="flex flex-col w-full justify-items-start">
|
||||
<label class="!font-semibold text-gray-600 pl-2">Transaction category</label>
|
||||
<div class="flex card !justify-start !items-start !p-4 !pl-5 cursor-pointer"
|
||||
<div class="flex card !justify-start !items-start !p-3 !pl-5 cursor-pointer"
|
||||
@click="isCategorySelectorOpened = true; isCategoryError=false;">
|
||||
<div class="flex flex-row w-full gap-2 items-center justify-between">
|
||||
<div v-if="transactionCategory" class="flex flex-row gap-2 items-center">
|
||||
@@ -396,7 +397,7 @@ onMounted(async () => {
|
||||
</div>
|
||||
<span v-if="isCategoryError" class="text-sm text-red-500 font-extralight">Category should be selected</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="flex !flex-col w-full justify-items-start">
|
||||
<label class="!font-semibold text-gray-600 !pl-2">Transaction date</label>
|
||||
<div class="card flex justify-center">
|
||||
|
||||
Reference in New Issue
Block a user