Skip to content

Commit 334cd69

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 4dc1c2f commit 334cd69

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
@@ -159,7 +159,9 @@ export default {
159159
],
160160
defaultLocale: 'default',
161161
autoChangeCookie: {
162+
currency: false,
162163
locale: false,
164+
country: false,
163165
},
164166
lazy: true,
165167
seo: true,

0 commit comments

Comments
 (0)