Skip to content

Commit

Permalink
Fixed: suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmukhdutt committed Jan 15, 2024
1 parent f6bd022 commit 6fe81b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
</ion-header>
<ion-content>
<ion-list>
<ion-menu-toggle auto-hide="false" v-for="(p,i) in getValidMenuItems(appPages)" :key="i">
<ion-menu-toggle auto-hide="false" v-for="(page, index) in getValidMenuItems(appPages)" :key="index">
<ion-item
button
router-direction="root"
:router-link="p.url"
:router-link="page.url"
class="hydrated"
:class="{ selected: selectedIndex === i}">
<ion-icon slot="start" :ios="p.iosIcon" :md="p.mdIcon"></ion-icon>
<ion-label>{{ p.title }}</ion-label>
:class="{ selected: selectedIndex === index}">
<ion-icon slot="start" :ios="page.iosIcon" :md="page.mdIcon"></ion-icon>
<ion-label>{{ page.title }}</ion-label>
</ion-item>
</ion-menu-toggle>
</ion-list>
Expand Down Expand Up @@ -138,7 +138,7 @@
const selectedIndex = computed(() => {
const path = router.currentRoute.value.path;
return appPages.findIndex((screen) => screen.url === path);
return appPages.findIndex((screen) => screen.url === path);
});
return {
Expand All @@ -148,8 +148,8 @@
pulseOutline,
optionsOutline,
settingsOutline,
selectedIndex,
store,
selectedIndex
};
},
});
Expand Down

0 comments on commit 6fe81b1

Please sign in to comment.