Skip to content

Commit 85ef511

Browse files
committed
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
1 parent 62fd911 commit 85ef511

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎ui/scripts/instances.js‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,11 +338,12 @@
338338
notification: function(args) {
339339
return 'label.action.start.instance';
340340
},
341-
complete: function(args) {
341+
complete: function(args) {
342342
if(args.password != null) {
343-
alert('Password of the VM is ' + args.password);
343+
return 'Password of the VM is ' + args.password;
344344
}
345-
return 'label.action.start.instance';
345+
346+
return false;
346347
}
347348
},
348349
notification: {

0 commit comments

Comments
 (0)