Merge pull request #6434 from marshmalien/6432-launch-btn-bug

Disable launch button when there are zero nodes

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-03-26 15:27:45 +00:00 committed by GitHub
commit 9dbf75f2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,7 +112,7 @@ function VisualizerToolbar({
<ActionButton
id="visualizer-launch"
variant="plain"
isDisabled={!canLaunch}
isDisabled={!canLaunch || totalNodes === 0}
onClick={handleLaunch}
>
<RocketIcon />