fix: tweak how grid filter params are built, for better link share
This commit is contained in:
parent
ec18ce7116
commit
faae9f1b0a
1 changed files with 15 additions and 3 deletions
|
|
@ -653,9 +653,21 @@
|
||||||
params[filter.key+'.verb'] = filter.verb
|
params[filter.key+'.verb'] = filter.verb
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Object.keys(params).length) {
|
|
||||||
params.filter = 'true'
|
## nb. we used to add filter=true only if some
|
||||||
}
|
## filter(s) is currently active, but that can cause
|
||||||
|
## problems when sharing a link for a grid which
|
||||||
|
## *currently* has no active filters, but which does
|
||||||
|
## have *default* filters. so for now we always
|
||||||
|
## declare filters to be "in effect" even if there
|
||||||
|
## are none active. hopefully that does not break
|
||||||
|
## anything else but this note is here just in case.
|
||||||
|
|
||||||
|
## if (Object.keys(params).length) {
|
||||||
|
## params.filter = 'true'
|
||||||
|
## }
|
||||||
|
params.filter = 'true'
|
||||||
|
|
||||||
return params
|
return params
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue