From c1b5612c2d100b3e17ff3ef72e54546faf33b3e3 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Mon, 23 Sep 2013 12:00:14 -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: {