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)

This commit is contained in:
Jessica Wang 2012-08-20 15:34:07 -07:00
parent 1bd532d13b
commit b32816bc95
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
});
},