File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
packages/theme/components Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 11<template >
22 <!-- TODO: create logic with isActive prop for BottomNavigationItems -->
33 <SfBottomNavigation class =" navigation-bottom smartphone-only" >
4- <nuxt-link to =" localePath('/')" >
5- <SfBottomNavigationItem
6- :class =" $route.path == '/' ? 'sf-bottom-navigation__item--active' : ''"
7- icon =" home"
8- size =" 20px"
9- label =" Home"
10- @click =" isMobileMenuOpen ? toggleMobileMenu() : false"
11- />
12- </nuxt-link >
4+ <SfBottomNavigationItem
5+ :class =" $route.path == '/' ? 'sf-bottom-navigation__item--active' : ''"
6+ icon =" home"
7+ size =" 20px"
8+ label =" Home"
9+ @click =" $router.push(app.localePath('/')) && (isMobileMenuOpen ? toggleMobileMenu() : false)"
10+ />
1311 <SfBottomNavigationItem
1412 icon =" menu"
1513 size =" 20px"
@@ -86,6 +84,7 @@ export default defineComponent({
8684 toggleCartSidebar,
8785 toggleMobileMenu,
8886 handleAccountClick,
87+ app,
8988 };
9089 },
9190});
You can’t perform that action at this time.
0 commit comments