Target input field needed to support both selecting suggestions and typing targets, since Toaster doesn't always know about all the targets provided by the layers in the project.
[YOCTO #7187] Signed-off-by: Michael Wood <[email protected]> --- bitbake/lib/toaster/toastergui/static/js/base.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 0302b80..777ab43 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js @@ -88,6 +88,8 @@ function basePageInit (ctx) { if (!newBuildTargetInput.val()) return; + if (!selectedTarget) + selectedTarget = { name: newBuildTargetInput.val() }; /* fire and forget */ libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null); window.location.replace(ctx.projectPageUrl+ctx.projectId); -- 2.1.0 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
