mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
bitbake: toaster: base Only show change project icon when > one project
In the new build button, it only makes sense to change the selected project when there is more than one project in the Toaster instance. If the number of projects is 1, we hide the change project icon. (Bitbake rev: e354a40d7dbcd85fea9d37d3983428e4470df2dd) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
4061fcdeeb
commit
3910763db7
@@ -11,6 +11,10 @@ function basePageInit (ctx) {
|
||||
return;
|
||||
}
|
||||
|
||||
/* Hide the change project icon when there is only one project */
|
||||
if (ctx.numProjects == 1){
|
||||
$('#project .icon-pencil').hide();
|
||||
}
|
||||
|
||||
newBuildButton.show().removeAttr("disabled");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user