From 3910763db7285ced72a880e708642a35855ab0c4 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Wed, 3 Dec 2014 13:53:34 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/base.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index fac59e6458..619ad287c4 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js @@ -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"); -- cgit v1.2.3-54-g00ecf