fix: change grid reset-view param name to match wuttaweb

This commit is contained in:
Lance Edgar 2024-08-22 13:49:57 -05:00
parent e52a83751e
commit b8131c8393
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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) {

View file

@ -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_: