Merge pull request #128 from nikhilkutinha/master
Upgrade manual visit method replace with get
This commit is contained in:
commit
18ddb912f3
|
@ -95,7 +95,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
handler: throttle(function() {
|
handler: throttle(function() {
|
||||||
let query = pickBy(this.form)
|
let query = pickBy(this.form)
|
||||||
this.$inertia.replace(this.route('contacts', Object.keys(query).length ? query : { remember: 'forget' }))
|
this.$inertia.get(this.route('contacts'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
|
||||||
}, 150),
|
}, 150),
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -87,7 +87,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
handler: throttle(function() {
|
handler: throttle(function() {
|
||||||
let query = pickBy(this.form)
|
let query = pickBy(this.form)
|
||||||
this.$inertia.replace(this.route('organizations', Object.keys(query).length ? query : { remember: 'forget' }))
|
this.$inertia.get(this.route('organizations'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
|
||||||
}, 150),
|
}, 150),
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
|
|
@ -92,7 +92,7 @@ export default {
|
||||||
form: {
|
form: {
|
||||||
handler: throttle(function() {
|
handler: throttle(function() {
|
||||||
let query = pickBy(this.form)
|
let query = pickBy(this.form)
|
||||||
this.$inertia.replace(this.route('users', Object.keys(query).length ? query : { remember: 'forget' }))
|
this.$inertia.get(this.route('users'), Object.keys(query).length ? query : { remember: 'forget' }, { preserveState: true })
|
||||||
}, 150),
|
}, 150),
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue