X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FlaunchpadFleetSource.js;h=fff6fae8ca87a345dc420e12844a5df5d5cca9e2;hp=71e3d7d5dda7f491e8573f727d89782b8ec6e0bb;hb=refs%2Fheads%2Fv1.1;hpb=e29efc315df33d546237e270470916e26df391d6 diff --git a/skyquake/plugins/launchpad/src/launchpadFleetSource.js b/skyquake/plugins/launchpad/src/launchpadFleetSource.js index 71e3d7d5d..fff6fae8c 100644 --- a/skyquake/plugins/launchpad/src/launchpadFleetSource.js +++ b/skyquake/plugins/launchpad/src/launchpadFleetSource.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -61,6 +61,26 @@ module.exports = function(Alt) { success: FleetActions.getNsrInstancesSuccess, error: FleetActions.getNsrInstancesError }, + getVDUConsoleLink: { + remote: function(state, url) { + return new Promise(function(resolve, reject) { + $.ajax({ + url: url + '?api_server=' + API_SERVER, + type: 'GET', + beforeSend: Utils.addAuthorizationStub, + success: function(data) { + resolve(data); + }, + error: function(error) { + console.log('There was an error getting the VDU link', error); + return reject(error); + } + }); + }); + }, + success: FleetActions.getVDUConsoleLinkSuccess, + error: FleetActions.getVDUConsoleLinkError + }, deleteNsrInstance: { remote: function(d, id) { console.log(id) @@ -86,7 +106,7 @@ module.exports = function(Alt) { return resolve(false); } $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER , + url: '/socket-polling?api_server=' + API_SERVER, type: 'POST', beforeSend: Utils.addAuthorizationStub, data: {