Skip to content

Commit

Permalink
rename pushState to nav
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Aug 9, 2024
1 parent 6d11a76 commit 5469a49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/AutoQueryGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const props = withDefaults(defineProps<{
const emit = defineEmits<{
(e: "headerSelected", name:string, ev:Event): void
(e: "rowSelected", item:any, ev:Event): void
(e: "pushState", args:any): void
(e: "nav", args:any): void
}>()
const client = inject<JsonServiceClient>('client')!
Expand Down Expand Up @@ -373,7 +373,7 @@ function canFilter(column:string) {
}
function updateUrl(args:Record<string,any>) {
emit('pushState', args)
emit('nav', args)
if (!allow('queryString')) return
pushState(args)
}
Expand Down

0 comments on commit 5469a49

Please sign in to comment.