mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
bitbake: toaster: layerdetails update build recipe button class name
Update the class name which we are using for the recipe build button. This fixes a regression in the buttons being enabled/disabled when adding and removing the layer being viewed from the project. (Bitbake rev: cc63f10f69105205e65b5f9647232b2b4b23ad48) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7794b5728d
commit
d6d680d2e5
@@ -254,7 +254,7 @@ function layerDetailsPageInit (ctx) {
|
|||||||
|
|
||||||
if (added){
|
if (added){
|
||||||
/* enable and switch all the button states */
|
/* enable and switch all the button states */
|
||||||
$(".build-target-btn").removeAttr("disabled");
|
$(".build-recipe-btn").removeAttr("disabled");
|
||||||
$(".select-machine-btn").removeAttr("disabled");
|
$(".select-machine-btn").removeAttr("disabled");
|
||||||
addRmLayerBtn.addClass("btn-danger");
|
addRmLayerBtn.addClass("btn-danger");
|
||||||
addRmLayerBtn.data('directive', "remove");
|
addRmLayerBtn.data('directive', "remove");
|
||||||
@@ -263,7 +263,7 @@ function layerDetailsPageInit (ctx) {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* disable and switch all the button states */
|
/* disable and switch all the button states */
|
||||||
$(".build-target-btn").attr("disabled","disabled");
|
$(".build-recipe-btn").attr("disabled","disabled");
|
||||||
$(".select-machine-btn").attr("disabled", "disabled");
|
$(".select-machine-btn").attr("disabled", "disabled");
|
||||||
addRmLayerBtn.removeClass("btn-danger");
|
addRmLayerBtn.removeClass("btn-danger");
|
||||||
addRmLayerBtn.data('directive', "add");
|
addRmLayerBtn.data('directive', "add");
|
||||||
|
|||||||
Reference in New Issue
Block a user