summaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
Diffstat (limited to 'client/js')
-rw-r--r--client/js/controllers/home/main.js1
-rw-r--r--client/js/services/Compute.js5
2 files changed, 3 insertions, 3 deletions
diff --git a/client/js/controllers/home/main.js b/client/js/controllers/home/main.js
index 805bc63..ee564b2 100644
--- a/client/js/controllers/home/main.js
+++ b/client/js/controllers/home/main.js
@@ -17,7 +17,6 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', function ($s
$scope.raiseShowMachineDetailsEvent=function(){
var callback=function(){
var data=Compute.getData();
- console.log(data.machines[Object.keys(data.machines)[0]]);
$rootScope.$broadcast("showMachineDetailsEvent", data.machines[Object.keys(data.machines)[0]]);
}
diff --git a/client/js/services/Compute.js b/client/js/services/Compute.js
index 7c9df26..28f8a69 100644
--- a/client/js/services/Compute.js
+++ b/client/js/services/Compute.js
@@ -14,11 +14,12 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
var requestParserResult={};
requestParserResult.status=1;
requestParserResult.failReason=null;
-
+ console.log(response.data.Images[Object.keys(response.data.Images)[0]])
if (typeof response.data.Servers !== 'undefined') {
// Set status code
requestParserResult.status=0;
data.machines=response.data.Servers;
+
}
else if(failedToSendRequest){
requestParserResult.failReason="Failed to send request";
@@ -39,7 +40,7 @@ mainApp.factory('Compute',[ '$http', 'Identity', function($http, Identity){
var params={
"token" : Identity.getToken(),
"task" : "compute",
- "action":"listServers"
+ "action":"listImages"
};
var result=$http.post('../server/index.php',