summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-12-03 13:53:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-18 10:24:07 +0000
commit3910763db7285ced72a880e708642a35855ab0c4 (patch)
tree421ba3798a0ad889051e5c0e551316d76a3f3ed1
parent4061fcdeeb54f08f97089b58ab99160c2fe10604 (diff)
downloadpoky-3910763db7285ced72a880e708642a35855ab0c4.tar.gz
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>
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/base.js4
1 files changed, 4 insertions, 0 deletions
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) {
11 return; 11 return;
12 } 12 }
13 13
14 /* Hide the change project icon when there is only one project */
15 if (ctx.numProjects == 1){
16 $('#project .icon-pencil').hide();
17 }
14 18
15 newBuildButton.show().removeAttr("disabled"); 19 newBuildButton.show().removeAttr("disabled");
16 20