From 35e50761562fc558ec7e272cc7dbd1cff564d356 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 23 Sep 2013 11:57:10 -0700 Subject: [PATCH] CLOUDSTACK-2180: UI > Instances ? Reboot VM action > if the template from which vm is created is password-enabled, pop up "Password has been reset to xxxxxxx" dialog after action is complete. --- ui/scripts/instances.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index cf8aca5b485..a9f6d1c8c5a 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -458,6 +458,12 @@ }, notification: function(args) { return 'label.action.reboot.instance'; + }, + complete: function(args) { + if (args.password != null && args.password.length > 0) + return 'Password has been reset to ' + args.password; + else + return null; } }, notification: {