fix(XOSAN): ask user to restart toolstacks after installing XOSAN pack (#2404)

This commit is contained in:
Pierre Donias
2017-10-04 17:55:34 +02:00
committed by Julien Fontanet
parent 105ede5b1d
commit 86e5206b4d
2 changed files with 6 additions and 3 deletions

View File

@@ -171,6 +171,8 @@ const XOSAN_INDIVIDUAL_ACTIONS = [
pool.xosanPackInstallationTime > host.agentStartTime
)
})
return hostsNeedRestartByPool
}
)
@@ -252,7 +254,7 @@ export default class Xosan extends Component {
_onSrCreationStarted = () => this.setState({ showNewXosanForm: false })
render () {
const { xosanSrs, noPacksByPool, hostsNeedRestart, poolPredicate } = this.props
const { xosanSrs, noPacksByPool, hostsNeedRestartByPool, poolPredicate } = this.props
const error = this._getError()
return <Page header={HEADER} title='xosan' formatTitle>
@@ -277,7 +279,7 @@ export default class Xosan extends Component {
<Row>
<Col>
{this.state.showNewXosanForm && <NewXosan
hostsNeedRestart={hostsNeedRestart}
hostsNeedRestartByPool={hostsNeedRestartByPool}
noPacksByPool={noPacksByPool}
poolPredicate={poolPredicate}
onSrCreationStarted={this._onSrCreationStarted}

View File

@@ -236,7 +236,7 @@ export default class NewXosan extends Component {
} = this.state
const {
hostsNeedRestart,
hostsNeedRestartByPool,
noPacksByPool,
poolPredicate
} = this.props
@@ -245,6 +245,7 @@ export default class NewXosan extends Component {
const hosts = this._getHosts()
const disableSrCheckbox = this._getDisableSrCheckbox()
const hostsNeedRestart = pool !== undefined && hostsNeedRestartByPool !== undefined && hostsNeedRestartByPool[pool.id]
return <Container>
<Row className='mb-1'>