mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
bitbake: toastergui: Standardise the layer object property layerdetailurl
To be able to use the utility functions in libtoaster we need to have a single property name for the value that represents the url for the layer details in the layer object. (Bitbake rev: 4d64fd0d1236d342b29537f601a68cd23a8255ea) 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>
This commit is contained in:
committed by
Richard Purdie
parent
df999d2ac1
commit
1b13222e1c
@@ -50,7 +50,7 @@ function importLayerPageInit (ctx) {
|
||||
newLayerDep.children("span").tooltip();
|
||||
|
||||
var link = newLayerDep.children("a");
|
||||
link.attr("href", currentLayerDepSelection.layerDetailsUrl);
|
||||
link.attr("href", currentLayerDepSelection.layerdetailurl);
|
||||
link.text(currentLayerDepSelection.name);
|
||||
link.tooltip({title: currentLayerDepSelection.tooltip, placement: "right"});
|
||||
|
||||
@@ -65,10 +65,10 @@ function importLayerPageInit (ctx) {
|
||||
|
||||
$("#layer-deps-list").append(newLayerDep);
|
||||
|
||||
libtoaster.getLayerDepsForProject(currentLayerDepSelection.layerDetailsUrl, function (data){
|
||||
libtoaster.getLayerDepsForProject(currentLayerDepSelection.layerdetailurl, function (data){
|
||||
/* These are the dependencies of the layer added as a dependency */
|
||||
if (data.list.length > 0) {
|
||||
currentLayerDepSelection.url = currentLayerDepSelection.layerDetailsUrl;
|
||||
currentLayerDepSelection.url = currentLayerDepSelection.layerdetailurl;
|
||||
layerDeps[currentLayerDepSelection.id].deps = data.list;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ function layerDetailsPageInit (ctx) {
|
||||
newLayerDep.children("span").tooltip();
|
||||
|
||||
var link = newLayerDep.children("a");
|
||||
link.attr("href", currentLayerDepSelection.layerDetailsUrl);
|
||||
link.attr("href", currentLayerDepSelection.layerdetailurl);
|
||||
link.text(currentLayerDepSelection.name);
|
||||
link.tooltip({title: currentLayerDepSelection.tooltip, placement: "right"});
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ var libtoaster = (function (){
|
||||
function _addRmLayer(layerObj, add, doneCb){
|
||||
if (add === true) {
|
||||
/* If adding get the deps for this layer */
|
||||
libtoaster.getLayerDepsForProject(layerObj.url,
|
||||
libtoaster.getLayerDepsForProject(layerObj.layerdetailurl,
|
||||
function (layers) {
|
||||
|
||||
/* got result for dependencies */
|
||||
@@ -285,7 +285,7 @@ var libtoaster = (function (){
|
||||
}
|
||||
|
||||
alertMsg.children("#layer-affected-name").text(layer.name);
|
||||
alertMsg.children("#layer-affected-name").attr("href", layer.url);
|
||||
alertMsg.children("#layer-affected-name").attr("href", layer.layerdetailurl);
|
||||
alertMsg.children("#project-affected-name").text(libtoaster.ctx.projectName);
|
||||
alertMsg.children("#project-affected-name").attr("href", libtoaster.ctx.projectPageUrl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user