Merge pull request #2580 from balena-io/progress-button-disabled-prop-is-a-boolean

ProgressBar.disabled prop is a boolean
This commit is contained in:
Lorenzo Alberto Maria Ambrosi 2019-01-09 14:04:55 +01:00 committed by GitHub
commit e89566e04a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@
active = "main.state.isFlashing()"
percentage="main.state.getFlashState().percentage"
label="flash.getProgressButtonLabel()"
disabled="main.state.getLastFlashErrorCode() || main.shouldFlashStepBeDisabled()"
disabled="!!main.state.getLastFlashErrorCode() || main.shouldFlashStepBeDisabled()"
callback="flash.flashImageToDrive" >
</progress-button>