fix(dockerfile-build-dialog): disable button until ready

Ensure the callback function in the dockerfileBuildDialog
directive is set, and therefore that it's ready to start a build,
before enabling the button to trigger start build.

Fixes: [Issue #203931642/](https://sentry.io/coreos/frontend-production/issues/203931642/)
This commit is contained in:
EvB 2017-01-12 11:22:59 -05:00
parent 081424ed82
commit aba4187d81

View file

@ -59,7 +59,7 @@
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" ng-click="startBuild()"
ng-disabled="!hasDockerfile || buildStarting"
ng-disabled="!hasDockerfile || buildStarting || !startBuildCallback"
ng-show="!viewTriggers">Start Build</button>
<button type="button" class="btn btn-default" data-dismiss="modal"
ng-disabled="buildStarting">Close</button>