Skip to content

Commit 8d1cdeb

Browse files
bloodfMarcin Kwiatkowski
authored andcommitted
refactor(theme): enable the currency switcher on TopBar.vue (#430)
* refactor(theme): enables currency switcher on TopBar.vue * refactor(theme): add safe checking on Currency Selector
1 parent 87c57e4 commit 8d1cdeb

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

packages/theme/components/TopBar.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,20 @@
1212
</SfButton>
1313
</template>
1414
<template #right>
15-
<!--
16-
/**
17-
* The currency switch is commented, until the Core package
18-
* enables the switch of currency without returning to the browser one with i18n
19-
*/
20-
<CurrencySelector />
21-
-->
15+
<CurrencySelector />
2216
<StoreSwitcher />
2317
</template>
2418
</SfTopBar>
2519
</template>
2620

2721
<script>
2822
import { SfButton, SfTopBar } from '@storefront-ui/vue';
29-
// import CurrencySelector from './CurrencySelector';
23+
import CurrencySelector from './CurrencySelector';
3024
import StoreSwitcher from './StoreSwitcher';
3125
3226
export default {
3327
components: {
34-
// CurrencySelector,
28+
CurrencySelector,
3529
SfTopBar,
3630
SfButton,
3731
StoreSwitcher,

packages/theme/nuxt.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export default {
143143
],
144144
defaultLocale: 'default',
145145
autoChangeCookie: {
146+
currency: false,
146147
locale: false,
148+
country: false,
147149
},
148150
lazy: true,
149151
seo: true,

0 commit comments

Comments
 (0)