Skip to content

Commit

Permalink
fix(default-theme): hide language switcherand currency switcher if on…
Browse files Browse the repository at this point in the history
…l ony available (#1269)
  • Loading branch information
jnuricumbo authored Dec 2, 2020
1 parent da925f9 commit b69cd39
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/default-theme/src/components/SwBottomMoreActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,19 @@

<div class="content">
<div v-if="!contentChanged" class="content-list">
<SfBottomNavigationItem label="Currency">
<SfBottomNavigationItem
v-if="availableCurrencies.length > 1"
label="Currency"
>
<template #icon>
<SfIcon icon="credits" size="20px" @click="changeCurrency" />
</template>
</SfBottomNavigationItem>

<SfBottomNavigationItem label="Language">
<SfBottomNavigationItem
v-if="availableLanguages.length > 1"
label="Language"
>
<template #icon>
<SfIcon icon="marker" size="20px" @click="changeLanguage" />
</template>
Expand Down

1 comment on commit b69cd39

@vercel
Copy link

@vercel vercel bot commented on b69cd39 Dec 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.