Skip to content

Commit

Permalink
fix filters for pods pane
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-deboer committed Oct 31, 2017
1 parent 7387616 commit 9bef496
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/ui/src/components/configuration-pane/PodsPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ class PodsPane extends React.PureComponent {
continue
}
let pod = resources[key]
if (pod.spec.nodeName === nodeName) {

if (!pod.isFiltered && pod.spec.nodeName === nodeName) {
pods.push(pod)
}
}
Expand All @@ -323,7 +324,9 @@ class PodsPane extends React.PureComponent {
}

componentWillReceiveProps = (props) => {
if (props.maxResourceVersionByKind.Pod !== this.props.maxResourceVersionByKind.Pod) {
if (props.maxResourceVersionByKind.Pod !== this.props.maxResourceVersionByKind.Pod
|| props.filterNames !== this.props.filterNames
) {
this.setState({
pods: this.resolvePods(props.resources, this.state.nodeName)
})
Expand All @@ -335,6 +338,7 @@ class PodsPane extends React.PureComponent {
|| nextState.actionsOpen !== this.state.actionsOpen
|| nextProps.contentTop !== this.props.contentTop
|| nextState.pods !== this.state.pods
|| nextProps.filterNames !== this.props.filterNames
}

render() {
Expand Down

0 comments on commit 9bef496

Please sign in to comment.