Skip to content

Commit

Permalink
refactor(Price add): move new price add clear button at the bottom ri…
Browse files Browse the repository at this point in the history
…ght. ref #1085
  • Loading branch information
raphodn committed Dec 15, 2024
1 parent 213e7a9 commit f2557cf
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions src/views/AddPriceMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
prepend-icon="mdi-tag-plus-outline"
height="100%"
>
<template #append>
<v-icon icon="mdi-delete" color="error" @click="clearProductPriceForm" />
</template>
<v-divider />
<v-card-text>
<ProductInputRow :productForm="productPriceForm" @filled="productFormFilled = $event" />
Expand All @@ -70,11 +67,24 @@
</v-col>
</v-row>
<PriceInputRow class="mt-0" :priceForm="productPriceForm" :product="productPriceForm.product" :hideCurrencyChoice="true" :proofType="proofObject.type" @filled="pricePriceFormFilled = $event" />
</v-card-text>
<v-divider />
<v-card-actions>
<v-row>
<v-col>
<v-btn
size="small"
color="error"
icon="mdi-delete"
@click="clearProductPriceForm"
/>
</v-col>
<v-spacer />
<v-col>
<v-btn
class="float-right"
color="success"
variant="flat"
type="submit"
:loading="createPriceLoading"
:disabled="!productPriceFormFilled"
Expand All @@ -83,7 +93,7 @@
</v-btn>
</v-col>
</v-row>
</v-card-text>
</v-card-actions>
</v-card>
</v-form>

Expand Down

0 comments on commit f2557cf

Please sign in to comment.