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
|
||||
# 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
|
||||
|
||||
# If request has filter settings, grab those, then grab sort/pager
|
||||
|
|
|
@ -683,7 +683,7 @@
|
|||
this.loading = true
|
||||
|
||||
// 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
|
||||
if (location.hash) {
|
||||
|
|
|
@ -335,7 +335,7 @@ class MasterView(View):
|
|||
|
||||
# If user just refreshed the page with a reset instruction, issue a
|
||||
# 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}
|
||||
hash_ = self.request.GET.get('hash')
|
||||
if hash_:
|
||||
|
@ -1184,7 +1184,7 @@ class MasterView(View):
|
|||
|
||||
# If user just refreshed the page with a reset instruction, issue a
|
||||
# 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}
|
||||
hash_ = self.request.GET.get('hash')
|
||||
if hash_:
|
||||
|
|
Loading…
Reference in a new issue