Correct machine details bug
This commit is contained in:
parent
cc6f0008e3
commit
b0f5474306
4 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,6 @@
|
|||
*/
|
||||
mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','Identity', 'Image', function ($scope, Compute, $rootScope, Loading, Identity, Image)
|
||||
{
|
||||
console.log("test");
|
||||
// Function to call after pull all data about machines
|
||||
var callMeAfterPullData=function(data){
|
||||
//$scope.machines=Compute.getData().machines;
|
||||
|
@ -51,7 +50,6 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I
|
|||
tryToRetrieveData();
|
||||
|
||||
var displayMachine = function(){
|
||||
console.log("test");
|
||||
var machineNames = [];
|
||||
var i = 0;
|
||||
$.each(Compute.getData().machines, function(){
|
||||
|
@ -158,7 +156,7 @@ mainApp.controller('homeCtrl', [ '$scope', 'Compute', '$rootScope', 'Loading','I
|
|||
var width = 130;
|
||||
var height = 80;
|
||||
var data = Compute.getData();
|
||||
console.log(data.machines[vm[1]]);
|
||||
//console.log(data.machines[vm[1]]);
|
||||
if(data.machines[vm[1]].status == "ACTIVE"){
|
||||
return new joint.shapes.org.Member({
|
||||
id: vm[1],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue