From b97358f32d08702a0894f06154cd33d438bf5019 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 23 Jan 2012 13:41:25 -0800 Subject: [PATCH] cloudstack 3.0 new UI - network page - IP address page - detail view - no actions are allowed if IP is elastic. --- ui/scripts/network.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 916923bbd4a..7253638a3ef 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -15,7 +15,8 @@ status == 'Released' || status == 'Creating' || status == 'Allocating' || - item.account == 'system') { + item.account == 'system' || + item.iselastic == true ) { disallowedActions = allowedActions; } @@ -40,10 +41,6 @@ disallowedActions.push('disableVPN'); } - if(item.iselastic) { - disallowedActions.push('destroy'); - } - allowedActions = $.grep(allowedActions, function(item) { return $.inArray(item, disallowedActions) == -1; });