mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 09:49:32 +02:00
bitbake: toastergui: remove xhr_projectedit and xhr_projectinfo URLs
This patch removes the xhr_projectedit and xhr_projectinfo URLs in favour of REST calls to the Project page. The project page takes now the POST requests to modify project settings. All usages of removed URLs are now changed to point to the project page, using the json format. The interface call specs have not modified. (Bitbake rev: 6ad3078bd2be1a8cda99040acaa9bb81d77f0013) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
b1c91d06e0
commit
4a2a057130
@@ -29,7 +29,7 @@ function basePageInit (ctx) {
|
||||
if (libtoaster.ctx.projectId == undefined)
|
||||
return;
|
||||
|
||||
libtoaster.getProjectInfo(ctx.projectInfoUrl, libtoaster.ctx.projectId,
|
||||
libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl,
|
||||
function(data){
|
||||
if (data.machine.name == undefined || data.layers.length == 0) {
|
||||
/* we can't build anything with out a machine and some layers */
|
||||
@@ -102,7 +102,6 @@ function basePageInit (ctx) {
|
||||
/* TBD: do we override even if we already have a context project ?? */
|
||||
/* TODO: replace global library context with references to the "selected" project */
|
||||
libtoaster.ctx.projectPageUrl = selectedProject.projectPageUrl;
|
||||
libtoaster.ctx.xhrProjectEditUrl = selectedProject.xhrProjectEditUrl;
|
||||
libtoaster.ctx.projectName = selectedProject.name;
|
||||
libtoaster.ctx.projectId = selectedProject.id;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user