Skip to content

Commit

Permalink
Price add: disable location if proof not selected yet
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Jun 20, 2024
1 parent 8355f56 commit e18653f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/views/AddPriceMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<v-card-text>
<ProofInputRow :proofType="proofType" :proofForm="addPriceMultipleForm" />
</v-card-text>
<v-overlay v-model="disableProofLocationDateForm" scrim="#E8F5E9" contained persistent />
<v-overlay v-model="disableProofForm" scrim="#E8F5E9" contained persistent />
</v-card>
</v-col>

Expand Down Expand Up @@ -70,7 +70,7 @@
</v-col>
</v-row>
</v-card-text>
<v-overlay v-model="disableProofLocationDateForm" scrim="#E8F5E9" contained persistent />
<v-overlay v-model="disableLocationDateForm" scrim="#E8F5E9" contained persistent />
</v-card>
</v-col>

Expand Down Expand Up @@ -282,8 +282,11 @@ export default {
formFilled() {
return this.proofLocationFormFilled && !!this.productPriceUploadedList.length && !Object.keys(this.productPriceForm).length
},
disableProofLocationDateForm() {
return this.proofLocationFormFilled && !!this.productPriceUploadedList.length
disableProofForm() {
return this.proofFormFilled && !!this.productPriceUploadedList.length
},
disableLocationDateForm() {
return !this.proofFormFilled || this.disableProofForm
},
disablePriceAlreadyUploadedCard() {
// return !!this.productPriceUploadedList.length
Expand Down

0 comments on commit e18653f

Please sign in to comment.