diff --git a/CHANGELOG.md b/CHANGELOG.md index f7c222afd..592896056 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ NOTE: As semantic versioning states all 0.y.z releases can contain breaking chan - [#227](https://github.com/kobsio/kobs/pull/227): [techdocs] Ignore comments in code blocks in table of contents. - [#234](https://github.com/kobsio/kobs/pull/234): [azure] Fix json tags in Azure permissions struct. - [#242](https://github.com/kobsio/kobs/pull/242): [flux] Fix sync action for Kustomizations / Helm Releases and reload resources when search button is clicked. +- [#243](https://github.com/kobsio/kobs/pull/243): [resources] Fix reload of resources, when the user clicks on the search button. ### Changed diff --git a/plugins/applications/src/components/page/Applications.tsx b/plugins/applications/src/components/page/Applications.tsx index b3d7a6bb8..3a35ec21a 100644 --- a/plugins/applications/src/components/page/Applications.tsx +++ b/plugins/applications/src/components/page/Applications.tsx @@ -43,7 +43,9 @@ const Applications: React.FunctionComponent = ({ history.push({ pathname: location.pathname, - search: `?view=${opts.view}${c.length > 0 ? c.join('') : ''}${n.length > 0 ? n.join('') : ''}`, + search: `?time=${opts.times.time}&timeEnd=${opts.times.timeEnd}&timeStart=${opts.times.timeStart}&view=${ + opts.view + }${c.length > 0 ? c.join('') : ''}${n.length > 0 ? n.join('') : ''}`, }); }; diff --git a/plugins/resources/src/components/page/Page.tsx b/plugins/resources/src/components/page/Page.tsx index a2be56b61..6574305aa 100644 --- a/plugins/resources/src/components/page/Page.tsx +++ b/plugins/resources/src/components/page/Page.tsx @@ -32,7 +32,9 @@ const Page: React.FunctionComponent = ({ name, displayName, de history.push({ pathname: location.pathname, - search: `?selector=${opts.selector}${clusterParams.length > 0 ? clusterParams.join('') : ''}${ + search: `?time=${opts.times.time}&timeEnd=${opts.times.timeEnd}&timeStart=${opts.times.timeStart}&selector=${ + opts.selector + }${clusterParams.length > 0 ? clusterParams.join('') : ''}${ namespaceParams.length > 0 ? namespaceParams.join('') : '' }${resourceParams.length > 0 ? resourceParams.join('') : ''}`, });