web: prevent filter being cleaned on status reload

This change fixes the status page to prevent reseting the filter
value on page refresh.

Story: 2004032
Task: 27028
Change-Id: I5379f25ccaaca07fba8ad627aefe79c569a1c20d
This commit is contained in:
Tristan Cacqueray 2018-10-10 02:43:00 +00:00
parent 8b0a30ce3d
commit b57c95ae29
1 changed files with 3 additions and 1 deletions

View File

@ -57,6 +57,7 @@ class StatusPage extends React.Component {
constructor () {
super()
this.filterLoaded = false
this.timer = null
this.visible = true
@ -221,7 +222,8 @@ class StatusPage extends React.Component {
if (error) {
return (<Alert>{this.state.error}</Alert>)
}
if (this.filter && filter) {
if (this.filter && !this.filterLoaded && filter) {
this.filterLoaded = true
this.filter.value = filter
}
const statusControl = (