|
|
@@ -13,6 +13,7 @@ import EnvGroupList from "./EnvGroupList";
|
|
|
import CreateEnvGroup from "./CreateEnvGroup";
|
|
|
import ExpandedEnvGroup from "./ExpandedEnvGroup";
|
|
|
import { RouteComponentProps, withRouter } from "react-router";
|
|
|
+import { pushQueryParams } from "shared/routing";
|
|
|
|
|
|
type PropsType = RouteComponentProps & {
|
|
|
currentCluster: ClusterType;
|
|
|
@@ -74,7 +75,11 @@ class EnvGroupDashboard extends Component<PropsType, StateType> {
|
|
|
sortType={this.state.sortType}
|
|
|
/>
|
|
|
<NamespaceSelector
|
|
|
- setNamespace={(namespace) => this.setState({ namespace })}
|
|
|
+ setNamespace={(namespace) =>
|
|
|
+ this.setState({ namespace }, () =>
|
|
|
+ pushQueryParams(this.props, { namespace: this.state.namespace || "ALL" })
|
|
|
+ )
|
|
|
+ }
|
|
|
namespace={this.state.namespace}
|
|
|
/>
|
|
|
</SortFilterWrapper>
|