From 297fbc171cd12d778b9ff12e37c90269d660daf8 Mon Sep 17 00:00:00 2001 From: Brian Federle Date: Tue, 3 Apr 2012 11:44:21 -0700 Subject: [PATCH] bug 14569 Always show 'change service' action, even when VM is running. When VM is running, show a popup indicating user to stop VM, and do not perform action. --- ui/scripts/instances.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 61c7f1c7d3f..a829853778e 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1218,9 +1218,6 @@ changeService: { label: 'label.action.change.service', messages: { - confirm: function(args) { - return 'Are you sure you want to change service offering?'; - }, notification: function(args) { return 'label.action.change.service'; } @@ -1710,6 +1707,7 @@ allowedActions.push("stop"); allowedActions.push("restart"); allowedActions.push("destroy"); + allowedActions.push("changeService"); if (isAdmin()) allowedActions.push("migrate");