From ab896df63ba058f535cb303611574f293c7c680b Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 9 Oct 2015 10:32:42 +0100 Subject: bitbake: toaster: Fix stale layer state buttons Move the "is available to the project" state computation to the template for the Layer add/remove buttons, Recipe build/Add layer as done for the Package add/remove. This is more reliable as we can get an inconsistent state on the front end JS as there are many opportunities for hitting out of date project information. [YOCTO #8294] (Bitbake rev: 43469c3360566ad4897785f14f8717a9bc8b6078) Signed-off-by: Michael Wood Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/layer_btn.html | 12 ++++++++++-- bitbake/lib/toaster/toastergui/templates/recipe_btn.html | 12 ++++++++++-- bitbake/lib/toaster/toastergui/templates/toastertable.html | 1 - 3 files changed, 20 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates') diff --git a/bitbake/lib/toaster/toastergui/templates/layer_btn.html b/bitbake/lib/toaster/toastergui/templates/layer_btn.html index a2e93934de..314eec7cf2 100644 --- a/bitbake/lib/toaster/toastergui/templates/layer_btn.html +++ b/bitbake/lib/toaster/toastergui/templates/layer_btn.html @@ -1,8 +1,16 @@ - - diff --git a/bitbake/lib/toaster/toastergui/templates/recipe_btn.html b/bitbake/lib/toaster/toastergui/templates/recipe_btn.html index 77c1b235b9..baab06eb52 100644 --- a/bitbake/lib/toaster/toastergui/templates/recipe_btn.html +++ b/bitbake/lib/toaster/toastergui/templates/recipe_btn.html @@ -1,7 +1,15 @@ - -