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 @@
-
+
@@ -80,7 +80,7 @@
@close="changeCurrencyDialog = false"
/>
-
+
-
+
@@ -60,7 +60,7 @@
-
+
+
+
+ {{ $t('UserSettings.PriceValidation') }}
+
+
@@ -184,7 +196,8 @@ export default {
languageList,
// currencyList,
locationSelectorDisplayList: constants.LOCATION_SELECTOR_DISPLAY_LIST,
- productSelectorDisplayList: constants.PRODUCT_SELECTOR_DISPLAY_LIST
+ productSelectorDisplayList: constants.PRODUCT_SELECTOR_DISPLAY_LIST,
+ priceFormDisplayList: constants.PRICE_FORM_DISPLAY_LIST
}
},
computed: {