[UI] change alert to ui dialog in response of instance wizard

This commit is contained in:
Wei Zhou 2015-09-23 14:59:28 +02:00
parent cb9bf44538
commit 552c08f0b4
2 changed files with 6 additions and 2 deletions

View File

@ -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() {

View File

@ -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';
}