Instances UI: Better start instance notification

-Don't show dialog if no password enabled on start -- inhibits
 'Start instance' dialog from appearing for every VM.

-Use standard dialog (not alert) for VM password notification
This commit is contained in:
Brian Federle 2013-03-21 13:25:49 -07:00
parent 62fd9115c2
commit 85ef511702

View File

@ -338,11 +338,12 @@
notification: function(args) {
return 'label.action.start.instance';
},
complete: function(args) {
complete: function(args) {
if(args.password != null) {
alert('Password of the VM is ' + args.password);
return 'Password of the VM is ' + args.password;
}
return 'label.action.start.instance';
return false;
}
},
notification: {