diff --git a/ui/scripts/instanceWizard.js b/ui/scripts/instanceWizard.js index 1401acef8e2..98ac62bd073 100644 --- a/ui/scripts/instanceWizard.js +++ b/ui/scripts/instanceWizard.js @@ -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() { diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index 96bf02f462a..41d10edc73a 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -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'; }