diff --git a/src/components/ContributionAssistantPriceFormCard.vue b/src/components/ContributionAssistantPriceFormCard.vue index e56147b8be7..bf6f1a226c1 100644 --- a/src/components/ContributionAssistantPriceFormCard.vue +++ b/src/components/ContributionAssistantPriceFormCard.vue @@ -40,7 +40,7 @@ import { defineAsyncComponent } from 'vue' +import { mapStores } from 'pinia' +import { useAppStore } from '../store' import constants from '../constants' export default { @@ -125,12 +127,13 @@ export default { emits: ['removePriceTag', 'validatePriceTag'], data() { return { - mode: 'Display', // 'Edit' + mode: null, // see mounted productFormFilled: false, pricePriceFormFilled: false, } }, computed: { + ...mapStores(useAppStore), productIsTypeProduct() { return this.productPriceForm.type === constants.PRICE_TYPE_PRODUCT }, @@ -138,6 +141,9 @@ export default { return this.loading } }, + mounted() { + this.mode = this.appStore.user.price_form_default_mode + }, methods: { resetMode() { this.mode = 'Display' diff --git a/src/components/PriceInputRow.vue b/src/components/PriceInputRow.vue index e6ae2d0ce03..33cd77d5dc9 100644 --- a/src/components/PriceInputRow.vue +++ b/src/components/PriceInputRow.vue @@ -1,5 +1,5 @@