bitbake: toaster: New build button allow arbitrary build targets
PATCH 1/1 bitbake: toaster: New build button allow arbitrary build targets
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(+)
bitbake/lib/toaster/toastergui/static/js/base.js +2 -0
@@ -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);
Signature · 1 line
2.1.0
Taken for submission,
Thank you,
Alex
Quoted 35 lines · Michael Wood
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(+)bitbake/lib/toaster/toastergui/static/js/base.js +2
-0@@ -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
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC