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

View File

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