diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-10-14 14:10:10 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-16 14:13:21 +0100 |
commit | 2f52ef4b2f22dc266bbf61bebddbcf8bc65e72c8 (patch) | |
tree | 3d4521d3ef30ece5dc241079e2cbb60f9e700956 /bitbake/lib | |
parent | 556c0ea92eb32ddb9c9a5e30a74b2ca24ac69c68 (diff) | |
download | poky-2f52ef4b2f22dc266bbf61bebddbcf8bc65e72c8.tar.gz |
bitbake: toaster: importlayer Update property names for importlayer api calls
Update the property names used in checking for existing layers. The
server side API changed but not all references were updated.
[YOCTO #8300]
(Bitbake rev: 1cbf0cf77a638257e18066f911fe4c4e13c278c6)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/importlayer.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/importlayer.js b/bitbake/lib/toaster/toastergui/static/js/importlayer.js index 2fadbc0978..c68f3669f6 100644 --- a/bitbake/lib/toaster/toastergui/static/js/importlayer.js +++ b/bitbake/lib/toaster/toastergui/static/js/importlayer.js | |||
@@ -195,8 +195,8 @@ function importLayerPageInit (ctx) { | |||
195 | var dupLayerInfo = $("#duplicate-layer-info"); | 195 | var dupLayerInfo = $("#duplicate-layer-info"); |
196 | dupLayerInfo.find(".dup-layer-name").text(layer.name); | 196 | dupLayerInfo.find(".dup-layer-name").text(layer.name); |
197 | dupLayerInfo.find(".dup-layer-link").attr("href", layer.layerdetailurl); | 197 | dupLayerInfo.find(".dup-layer-link").attr("href", layer.layerdetailurl); |
198 | dupLayerInfo.find("#dup-layer-vcs-url").text(layer.layer__vcs_url); | 198 | dupLayerInfo.find("#dup-layer-vcs-url").text(layer.vcs_url); |
199 | dupLayerInfo.find("#dup-layer-revision").text(layer.revision.commit); | 199 | dupLayerInfo.find("#dup-layer-revision").text(layer.vcs_reference); |
200 | 200 | ||
201 | $(".fields-apart-from-layer-name").fadeOut(function(){ | 201 | $(".fields-apart-from-layer-name").fadeOut(function(){ |
202 | 202 | ||
@@ -214,11 +214,10 @@ function importLayerPageInit (ctx) { | |||
214 | $.getJSON(libtoaster.ctx.layersTypeAheadUrl, | 214 | $.getJSON(libtoaster.ctx.layersTypeAheadUrl, |
215 | { include_added: "true" , search: name, format: "json" }, | 215 | { include_added: "true" , search: name, format: "json" }, |
216 | function(layer) { | 216 | function(layer) { |
217 | if (layer.rows.length > 0) { | 217 | if (layer.results.length > 0) { |
218 | for (var i in layer.rows){ | 218 | for (var i in layer.results){ |
219 | if (layer.rows[i].name == name) { | 219 | if (layer.results[i].name == name) { |
220 | console.log(layer.rows[i]) | 220 | layerExistsError(layer.results[i]); |
221 | layerExistsError(layer.rows[i]); | ||
222 | } | 221 | } |
223 | } | 222 | } |
224 | } | 223 | } |