From b32816bc955e7664261baa10f61d5d8b67487346 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 20 Aug 2012 15:34:07 -0700 Subject: [PATCH] CS-15863: cloudstack 3.0 UI - autoscale - LB listing - VM listing - hide delete button based on vm displayname instead of vm name (Reviewed-by: Brian) --- ui/scripts/network.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 45e6bda0420..81ad9cd9e77 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -2627,7 +2627,7 @@ data.listloadbalancerruleinstancesresponse.loadbalancerruleinstance : []; $(lbInstances).each(function() { - if(this.name.indexOf('AutoScale-LB-') > -1) //autoscale VM is not allowed to be deleted manually. So, hide destroy button + if(this.displayname.indexOf('AutoScale-LB-') > -1) //autoscale VM is not allowed to be deleted manually. So, hide destroy button this._hideActions = ['destroy']; }); },