Fixed LocaleSwitch issue with new Menu

This commit is contained in:
Grzegorz Leoniec 2019-01-14 16:10:26 +01:00
parent d93c360cb7
commit 6e0380e5f6
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -25,7 +25,7 @@
slot="popover"
slot-scope="{toggleMenu}"
class="locale-menu-popover"
:is-exact="isExact"
:matcher="matcher"
:routes="routes"
>
<ds-menu-item
@ -79,7 +79,7 @@ export default {
this.$i18n.set(locale)
toggleMenu()
},
isExact(locale) {
matcher(locale) {
return locale === this.$i18n.locale()
}
}