mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
62fd9115c2
commit
85ef511702
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user