From 193e835717b1fcbf2092d6b09c65ec14cd6eb52f Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 16 Apr 2012 18:20:43 -0700 Subject: [PATCH] bug 14410: cloudstack 3.0 UI - instance page - Start VM action - show vm password on screen if startVM API returns it. --- ui/scripts/instances.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 5810b6d8f62..c5c612486f4 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -575,7 +575,13 @@ }, notification: function(args) { return 'label.action.start.instance'; - } + }, + complete: function(args) { + if(args.password != null) { + alert('Password of the VM is ' + args.password); + } + return 'label.action.start.instance'; + } }, notification: { poll: pollAsyncJobResult @@ -854,7 +860,13 @@ }, notification: function(args) { return 'label.action.start.instance'; - } + }, + complete: function(args) { + if(args.password != null) { + alert('Password of the VM is ' + args.password); + } + return 'label.action.start.instance'; + } }, notification: { poll: pollAsyncJobResult