diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-12-09 16:52:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-12 20:44:47 +0000 |
commit | 5ea25c49091f4d4b5007af948e063ed25ba5766f (patch) | |
tree | ac43b9664f27686ac5ae1a2448a96c410e3cfdac /lib/toaster/toastergui/static | |
parent | d195f24a1b30ae8698bff5e87308347b9596a2e2 (diff) | |
download | bitbake-contrib-5ea25c49091f4d4b5007af948e063ed25ba5766f.tar.gz |
toaster: Switch front end to use Layer get REST API
Switch the front end to use the proper REST API for retrieving layer
information.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/static')
-rw-r--r-- | lib/toaster/toastergui/static/js/libtoaster.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/static/js/libtoaster.js b/lib/toaster/toastergui/static/js/libtoaster.js index 86662b7a6..e7d6a950f 100644 --- a/lib/toaster/toastergui/static/js/libtoaster.js +++ b/lib/toaster/toastergui/static/js/libtoaster.js @@ -274,9 +274,13 @@ var libtoaster = (function () { } function _addRmLayer(layerObj, add, doneCb){ + if (layerObj.xhrLayerUrl === undefined){ + throw("xhrLayerUrl is undefined") + } + if (add === true) { /* If adding get the deps for this layer */ - libtoaster.getLayerDepsForProject(layerObj.layerdetailurl, + libtoaster.getLayerDepsForProject(layerObj.xhrLayerUrl, function (layers) { /* got result for dependencies */ |