summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-12-09 16:52:53 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-12 20:44:54 +0000
commit6f3d33c2931033dc5381cc67fe2c40a4c296fdca (patch)
treedb78728ed946317f87ce47de260504a5e387f528 /bitbake/lib/toaster/toastergui/static
parentccb36cc5499b9f3d93b44f629aff4e3cc0ba4f1c (diff)
downloadpoky-6f3d33c2931033dc5381cc67fe2c40a4c296fdca.tar.gz
bitbake: toaster: Switch front end to use Layer get REST API
Switch the front end to use the proper REST API for retrieving layer information. (Bitbake rev: 5ea25c49091f4d4b5007af948e063ed25ba5766f) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/libtoaster.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
index 86662b7a68..e7d6a950fc 100644
--- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
@@ -274,9 +274,13 @@ var libtoaster = (function () {
274 } 274 }
275 275
276 function _addRmLayer(layerObj, add, doneCb){ 276 function _addRmLayer(layerObj, add, doneCb){
277 if (layerObj.xhrLayerUrl === undefined){
278 throw("xhrLayerUrl is undefined")
279 }
280
277 if (add === true) { 281 if (add === true) {
278 /* If adding get the deps for this layer */ 282 /* If adding get the deps for this layer */
279 libtoaster.getLayerDepsForProject(layerObj.layerdetailurl, 283 libtoaster.getLayerDepsForProject(layerObj.xhrLayerUrl,
280 function (layers) { 284 function (layers) {
281 285
282 /* got result for dependencies */ 286 /* got result for dependencies */