aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-12-03 13:53:34 +0000
committerAlexandru DAMIAN <alexandru.damian@intel.com>2014-12-12 11:40:47 +0000
commite354a40d7dbcd85fea9d37d3983428e4470df2dd (patch)
treeaabe6a717de927260a925a67ec0f7e5c2a1f5926 /lib
parentcf98a8cbc5dd7a41bbe5fdebcd81e29b1621ff35 (diff)
downloadbitbake-e354a40d7dbcd85fea9d37d3983428e4470df2dd.tar.gz
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. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/toaster/toastergui/static/js/base.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/static/js/base.js b/lib/toaster/toastergui/static/js/base.js
index fac59e645..619ad287c 100644
--- a/lib/toaster/toastergui/static/js/base.js
+++ b/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");