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)
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/193a8c4e Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/193a8c4e Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/193a8c4e Branch: refs/heads/master Commit: 193a8c4edbf32c366009350706b8660f7e7f1517 Parents: 9365e54 Author: Jessica Wang <[email protected]> Authored: Mon Aug 20 15:34:07 2012 -0700 Committer: Vijay Venkatachalam <[email protected]> Committed: Fri Nov 16 10:56:55 2012 +0530 ---------------------------------------------------------------------- ui/scripts/network.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/193a8c4e/ui/scripts/network.js ---------------------------------------------------------------------- diff --git a/ui/scripts/network.js b/ui/scripts/network.js index c11b90b..a92f415 100755 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -2781,7 +2781,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']; }); },
