Skip to content

Commit

Permalink
fix(default-theme): mobile menu routes are fetched now (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal-Dziedzinski authored May 14, 2020
1 parent 8fed4b1 commit 306956d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/default-theme/components/SwBottomNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ import {
} from '@shopware-pwa/composables'
import { PAGE_ACCOUNT } from '../helpers/pages'
import SwCurrency from '@shopware-pwa/default-theme/components/SwCurrency'
import { onMounted } from '@vue/composition-api'
export default {
name: 'SwBottomNavigation',
Expand All @@ -86,9 +87,13 @@ export default {
},
setup() {
const { toggleSidebar, isSidebarOpen } = useCartSidebar()
const { routes } = useNavigation()
const { routes, fetchRoutes } = useNavigation()
const { toggleModal } = useUserLoginModal()
const { isLoggedIn } = useUser()
onMounted(async () => {
await fetchRoutes()
})
return {
isLoggedIn,
routes,
Expand Down

1 comment on commit 306956d

@vercel
Copy link

@vercel vercel bot commented on 306956d May 14, 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.