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:
Belen Barros Pena
2014-12-03 13:53:34 +00:00
committed by Richard Purdie
parent 4061fcdeeb
commit 3910763db7

View File

@@ -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");