mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-03-12 19:50:00 +00:00
reset show console button status on build change
This commit is contained in:
parent
6a863740c4
commit
b36c8b5a4d
@ -33,6 +33,13 @@ define([
|
||||
componentDidMount: function() {
|
||||
this.listenTo(buildStore, this.updateBuild);
|
||||
},
|
||||
componentWillReceiveProps: function(nextProps) {
|
||||
// reset console status when go from build page to another build
|
||||
// page (did mount and mount not called in this case)
|
||||
if (Number(nextProps.params.id) !== this.state.build.id) {
|
||||
this.setState({showConsole: this.getInitialState().showConsole});
|
||||
}
|
||||
},
|
||||
updateBuild: function(build) {
|
||||
if (build) {
|
||||
BuildActions.readAll({projectName: build.project.name});
|
||||
|
Loading…
Reference in New Issue
Block a user