mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
[UI] change alert to ui dialog in response of instance wizard
This commit is contained in:
parent
cb9bf44538
commit
552c08f0b4
@ -1068,7 +1068,9 @@
|
||||
getUpdatedItem: function(json) {
|
||||
var item = json.queryasyncjobresultresponse.jobresult.virtualmachine;
|
||||
if (item.password != null)
|
||||
alert("Password of new VM " + item.displayname + " is " + item.password);
|
||||
cloudStack.dialog.notice({
|
||||
message: "Password of new VM " + item.displayname + " is " + item.password
|
||||
});
|
||||
return item;
|
||||
},
|
||||
getActionFilter: function() {
|
||||
|
||||
@ -1507,7 +1507,9 @@
|
||||
},
|
||||
complete: function(args) {
|
||||
if (args.password != null) {
|
||||
alert('Password of the VM is ' + args.password);
|
||||
cloudStack.dialog.notice({
|
||||
message: 'Password of the VM is ' + args.password
|
||||
});
|
||||
}
|
||||
return 'label.action.start.instance';
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user