Skip to content

Commit

Permalink
Merge pull request #197 from amansinghbais/196-filter-menu-opening-issue
Browse files Browse the repository at this point in the history
Fixed: filter options not opening when navigating back from details page(#196)
  • Loading branch information
ravilodhi authored Feb 9, 2024
2 parents 0e54554 + 4f2ed20 commit cecc1a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/Picklists.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<ion-page>
<PicklistFilters content-id="filter-content" />
<PicklistFilters v-if="router.currentRoute.value.path === '/tabs/picklists'" content-id="filter-content" />
<ion-header :translucent="true">
<ion-toolbar>
<ion-title>{{ $t("Picklists") }}</ion-title>
Expand Down Expand Up @@ -61,6 +61,7 @@ import { filterOutline } from 'ionicons/icons';
import PicklistItem from '@/components/Picklist-item.vue';
import { mapGetters, useStore } from 'vuex';
import PicklistFilters from '@/components/Picklist-filters.vue';
import { useRouter } from 'vue-router';
export default defineComponent({
name: 'Picklists',
Expand Down Expand Up @@ -120,9 +121,11 @@ export default defineComponent({
},
setup(){
const store = useStore();
const router = useRouter();
return {
filterOutline,
router,
store
}
}
Expand Down

0 comments on commit cecc1a0

Please sign in to comment.