Skip to content

Commit

Permalink
refactor(UI): right-align all submit buttons. change color of Done bu…
Browse files Browse the repository at this point in the history
…ttons (#1068)
  • Loading branch information
raphodn authored Nov 30, 2024
1 parent 7a5c884 commit 492b628
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
12 changes: 4 additions & 8 deletions src/components/BarcodeManualInputDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@
prepend-inner-icon="mdi-barcode"
:hint="barcodeForm.barcode.length.toString()"
persistent-hint
/>

<v-btn
type="submit"
class="mt-2"
:disabled="!formFilled"
>
{{ $t('BarcodeManualInput.Submit') }}
</v-btn>
<template #append-inner>
<v-icon icon="mdi-plus" :disabled="!formFilled" @click="onSubmit" />
</template>
</v-text-field>
</v-form>
</v-card-text>
</v-card>
Expand Down
1 change: 1 addition & 0 deletions src/components/PriceEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

<v-card-actions>
<v-btn
class="float-right"
color="success"
variant="flat"
elevation="1"
Expand Down
1 change: 1 addition & 0 deletions src/components/ProofEditDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

<v-card-actions>
<v-btn
class="float-right"
color="success"
variant="flat"
elevation="1"
Expand Down
8 changes: 7 additions & 1 deletion src/components/ProofInputRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
<ProofMetadataInputRow :proofType="proofForm.type" :proofMetadataForm="proofForm" />
<v-row>
<v-col>
<v-btn color="success" :loading="loading" :disabled="!proofFormFilled || loading" @click="uploadProofList">
<v-btn
class="float-right"
color="success"
:loading="loading"
:disabled="!proofFormFilled || loading"
@click="uploadProofList"
>
<span v-if="!multiple">{{ $t('Common.Upload') }}</span>
<span v-else>{{ $t('Common.UploadMultipleImages', proofImageList.length) }}</span>
</v-btn>
Expand Down
3 changes: 1 addition & 2 deletions src/views/AddPriceMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</v-row>
</v-card-text>
<v-divider />
<v-card-text>
<v-card-text class="float-right">
<v-btn
color="success"
type="submit"
Expand All @@ -118,7 +118,6 @@
<v-btn
class="float-right"
type="submit"
color="success"
:loading="createPriceLoading"
:disabled="productPriceFormFilled"
@click="done"
Expand Down
1 change: 1 addition & 0 deletions src/views/AddPriceSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
<v-col>
<v-btn
type="submit"
class="float-right"
:color="formFilled ? 'success' : ''"
:loading="createPriceLoading"
:disabled="!formFilled"
Expand Down
1 change: 1 addition & 0 deletions src/views/ProofAddMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<v-row>
<v-col>
<v-btn
class="float-right"
type="submit"
:color="proofFormFilled ? 'success' : ''"
:loading="loading"
Expand Down
1 change: 1 addition & 0 deletions src/views/ProofAddSingle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<v-row>
<v-col>
<v-btn
class="float-right"
type="submit"
:color="proofFormFilled ? 'success' : ''"
:loading="loading"
Expand Down

0 comments on commit 492b628

Please sign in to comment.