Skip to content

Commit

Permalink
fix: apply filter state after navigate
Browse files Browse the repository at this point in the history
Closes #50
  • Loading branch information
Muetze42 committed Mar 8, 2024
1 parent 7401a14 commit c10556b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/mix-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"/js/tool.js": "/js/tool.js?id=aee9d4879125e301f7927cf89887f7f2"
"/js/tool.js": "/js/tool.js?id=70dce7900ba687d67081056b1b834d4e"
}
9 changes: 7 additions & 2 deletions resources/js/components/MainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
</template>

<script>
import {mapGetters} from 'vuex'
import {Inertia} from '@inertiajs/inertia'
import { mapGetters } from 'vuex'
import { Inertia } from '@inertiajs/inertia'
export default {
name: 'MainMenu',
Expand Down Expand Up @@ -79,6 +79,11 @@ export default {
this.filterMenu(this.menuFilter)
}
})
Inertia.on('navigate', (event) => {
if (this.menuFilter) {
this.filterMenu(this.menuFilter)
}
})
},
watch: {
Expand Down

0 comments on commit c10556b

Please sign in to comment.