diff --git a/src/config/defaultConfiguration.js b/src/config/defaultConfiguration.js index 5ffbc275..243772c9 100644 --- a/src/config/defaultConfiguration.js +++ b/src/config/defaultConfiguration.js @@ -35,6 +35,7 @@ export const defaultConfiguration = (platform = DEFAULT_PLATFORM) => { [CONFIG.KEY]: { [CONFIG.PLATFORM]: DEFAULT_PLATFORM, [CONFIG.CURRENCY]: 'EUR', + [CONFIG.SHOW_PRICES]: true, [CONFIG.SHOW_PRICE_SURCHARGE]: false, [CONFIG.PACKAGE_TYPE]: DEFAULT_PACKAGE_TYPE, diff --git a/src/data/keys/configKeys.js b/src/data/keys/configKeys.js index c671920b..3472bfd6 100644 --- a/src/data/keys/configKeys.js +++ b/src/data/keys/configKeys.js @@ -2,9 +2,10 @@ export const KEY = 'config'; // Properties export const API_BASE_URL = 'apiBaseUrl'; +export const CURRENCY = 'currency'; export const LOCALE = 'locale'; export const PLATFORM = 'platform'; -export const CURRENCY = 'currency'; +export const SHOW_PRICES = 'showPrices'; export const SHOW_PRICE_SURCHARGE = 'showPriceSurcharge'; export const PACKAGE_TYPE = 'packageType'; diff --git a/src/delivery-options/components/RecursiveForm/RecursiveForm.vue b/src/delivery-options/components/RecursiveForm/RecursiveForm.vue index 3dbe6251..6a00eca3 100644 --- a/src/delivery-options/components/RecursiveForm/RecursiveForm.vue +++ b/src/delivery-options/components/RecursiveForm/RecursiveForm.vue @@ -65,13 +65,13 @@ id: `${mutableOption.name}__${mutableOption.component.name}`, choice: choice.name, }" - :colspan="validChoices.length <= 1 ? null : !!choice.price ? 1 : 2" + :colspan="validChoices.length <= 1 ? null : (hasPrice(choice) ? 1 : 2)" :data="choice" :is-selected="isSelected(choice)" /> + :colspan="validChoices.length <= 1 ? null : (hasPrice(choice) ? 1 : 2)">