Skip to content

Commit c1b5612

Browse files
author
Jessica Wang
committed
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.
1 parent 62d49b3 commit c1b5612

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎ui/scripts/instances.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,12 @@
458458
},
459459
notification: function(args) {
460460
return 'label.action.reboot.instance';
461+
},
462+
complete: function(args) {
463+
if (args.password != null && args.password.length > 0)
464+
return 'Password has been reset to ' + args.password;
465+
else
466+
return null;
461467
}
462468
},
463469
notification: {

0 commit comments

Comments
 (0)