fix: change grid reset-view param name to match wuttaweb
This commit is contained in:
parent
e52a83751e
commit
b8131c8393
|
@ -873,7 +873,7 @@ class Grid(WuttaGrid):
|
||||||
|
|
||||||
# If request contains instruction to reset to default filters, then we
|
# If request contains instruction to reset to default filters, then we
|
||||||
# can skip the rest of the request/session checks.
|
# can skip the rest of the request/session checks.
|
||||||
if self.request.GET.get('reset-to-default-filters') == 'true':
|
if self.request.GET.get('reset-view'):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# If request has filter settings, grab those, then grab sort/pager
|
# If request has filter settings, grab those, then grab sort/pager
|
||||||
|
|
|
@ -683,7 +683,7 @@
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
||||||
// use current url proper, plus reset param
|
// use current url proper, plus reset param
|
||||||
let url = '?reset-to-default-filters=true'
|
let url = '?reset-view=true'
|
||||||
|
|
||||||
// add current hash, to preserve that in redirect
|
// add current hash, to preserve that in redirect
|
||||||
if (location.hash) {
|
if (location.hash) {
|
||||||
|
|
|
@ -335,7 +335,7 @@ class MasterView(View):
|
||||||
|
|
||||||
# If user just refreshed the page with a reset instruction, issue a
|
# If user just refreshed the page with a reset instruction, issue a
|
||||||
# redirect in order to clear out the query string.
|
# redirect in order to clear out the query string.
|
||||||
if self.request.GET.get('reset-to-default-filters') == 'true':
|
if self.request.GET.get('reset-view'):
|
||||||
kw = {'_query': None}
|
kw = {'_query': None}
|
||||||
hash_ = self.request.GET.get('hash')
|
hash_ = self.request.GET.get('hash')
|
||||||
if hash_:
|
if hash_:
|
||||||
|
@ -1184,7 +1184,7 @@ class MasterView(View):
|
||||||
|
|
||||||
# If user just refreshed the page with a reset instruction, issue a
|
# If user just refreshed the page with a reset instruction, issue a
|
||||||
# redirect in order to clear out the query string.
|
# redirect in order to clear out the query string.
|
||||||
if self.request.GET.get('reset-to-default-filters') == 'true':
|
if self.request.GET.get('reset-view'):
|
||||||
kw = {'_query': None}
|
kw = {'_query': None}
|
||||||
hash_ = self.request.GET.get('hash')
|
hash_ = self.request.GET.get('hash')
|
||||||
if hash_:
|
if hash_:
|
||||||
|
|
Loading…
Reference in a new issue