From ccfdb151f142eed0d0ce726843782ed5c319579b Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 27 Aug 2012 16:31:10 -0700 Subject: [PATCH] CS-15671: cloudstack 3.0 UI - Migrate SystemVM option, Migrate Router action - host dropdown - listHosts API no longer returns hasEnoughCapacity proprety. So, "Available" or "Full" is removed from dropdown option since "Available" or "Full" is determined by host's hasEnoughCapacity proprety. --- ui/scripts/system.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ui/scripts/system.js b/ui/scripts/system.js index 41c7992c856..ae45f270308 100644 --- a/ui/scripts/system.js +++ b/ui/scripts/system.js @@ -2160,7 +2160,8 @@ var hostObjs = json.listhostsresponse.host; var items = []; $(hostObjs).each(function() { - items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); + //items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); //listHosts API no longer returns hasEnoughCapacity proprety + items.push({id: this.id, description: this.name}); }); args.response.success({data: items}); } @@ -2693,7 +2694,8 @@ var hostObjs = json.listhostsresponse.host; var items = []; $(hostObjs).each(function() { - items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); + //items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); //listHosts API no longer returns hasEnoughCapacity proprety + items.push({id: this.id, description: this.name}); }); args.response.success({data: items}); } @@ -4333,7 +4335,8 @@ var hostObjs = json.listhostsresponse.host; var items = []; $(hostObjs).each(function() { - items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); + //items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); //listHosts API no longer returns hasEnoughCapacity proprety + items.push({id: this.id, description: this.name}); }); args.response.success({data: items}); } @@ -5071,7 +5074,8 @@ var hostObjs = json.listhostsresponse.host; var items = []; $(hostObjs).each(function() { - items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); + //items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); //listHosts API no longer returns hasEnoughCapacity proprety + items.push({id: this.id, description: this.name}); }); args.response.success({data: items}); } @@ -5490,7 +5494,8 @@ var hostObjs = json.listhostsresponse.host; var items = []; $(hostObjs).each(function() { - items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); + //items.push({id: this.id, description: (this.name + ": " +(this.hasEnoughCapacity? "Available" : "Full"))}); //listHosts API no longer returns hasEnoughCapacity proprety + items.push({id: this.id, description: this.name}); }); args.response.success({data: items}); }