]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: Fix stale layer state buttons
authorMichael Wood <michael.g.wood@intel.com>
Fri, 9 Oct 2015 09:32:42 +0000 (10:32 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 Oct 2015 07:10:30 +0000 (08:10 +0100)
commit43469c3360566ad4897785f14f8717a9bc8b6078
treeef0f38d157116ffa541c002a71cd2a5f6fb4a2da
parentb3682d1d851e616efa0715f9d43815a92e259432
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]

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>
lib/toaster/toastergui/static/js/layerBtn.js
lib/toaster/toastergui/static/js/table.js
lib/toaster/toastergui/static/js/tests/test.js
lib/toaster/toastergui/tables.py
lib/toaster/toastergui/templates/layer_btn.html
lib/toaster/toastergui/templates/recipe_btn.html
lib/toaster/toastergui/templates/toastertable.html