summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorAwais Belal <awais_belal@mentor.com>2018-09-05 22:26:47 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-09-10 12:15:04 +0100
commit73c29f321a7ee7242d81c7b77cefb65298eadd05 (patch)
tree06dd8360977a1fd139485904efd768a4a9fffcdf /bitbake
parent0b15ee38adf21cca559cd65ecab9c2aaa80dd384 (diff)
downloadpoky-73c29f321a7ee7242d81c7b77cefb65298eadd05.tar.gz
bitbake: toaster/layerdetails.js: don't hide local layer info
The local layer info (provided through custom fixtures) should not be hidden. It is better to handle it in the same manner as an imported layer, otherwise the layer path and dependency info is not shown. The layer editing fields are handled in the html side of things appropriately so this does not harm that implementation. [YOCTO #12891] (Bitbake rev: 75918405346abde6055658372c1a954a214001cc) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerdetails.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 9ead393cbf..933b65b4ca 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
@@ -359,7 +359,8 @@ function layerDetailsPageInit (ctx) {
359 if ($(this).is("dt")) { 359 if ($(this).is("dt")) {
360 var dd = $(this).next("dd"); 360 var dd = $(this).next("dd");
361 if (!dd.children("form:visible")|| !dd.find(".current-value").html()){ 361 if (!dd.children("form:visible")|| !dd.find(".current-value").html()){
362 if (ctx.layerVersion.layer_source == ctx.layerSourceTypes.TYPE_IMPORTED){ 362 if (ctx.layerVersion.layer_source == ctx.layerSourceTypes.TYPE_IMPORTED ||
363 ctx.layerVersion.layer_source == ctx.layerSourceTypes.TYPE_LOCAL) {
363 /* There's no current value and the layer is editable 364 /* There's no current value and the layer is editable
364 * so show the "Not set" and hide the delete icon 365 * so show the "Not set" and hide the delete icon
365 */ 366 */