feat(xo-web/updater): disable upgrade button when not needed (#2816)

Fixes #1594
This commit is contained in:
Rajaa.BARHTAOUI 2018-04-13 16:46:58 +02:00 committed by Pierre Donias
parent a6b0690416
commit 3e326c4e62

View File

@ -230,6 +230,7 @@ export default class XoaUpdates extends Component {
<ActionButton <ActionButton
btnStyle='success' btnStyle='success'
data-runningJobsExist={this._getRunningJobsExist()} data-runningJobsExist={this._getRunningJobsExist()}
disabled={state !== 'upgradeNeeded'}
handler={upgrade} handler={upgrade}
icon='upgrade' icon='upgrade'
> >