mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
deploy VM - show new password in dialog, middle menu item and right panel when middle menu item is clicked.
This commit is contained in:
parent
5af31fc97c
commit
115aff6cdb
@ -1170,9 +1170,10 @@ function initVMWizard() {
|
||||
bindClickToMidMenu($midmenuItem1, vmToRightPanel, getMidmenuId);
|
||||
|
||||
if (item.passwordenabled == true) {
|
||||
var extraMessage = "New password: " + item.password;
|
||||
afterAddingMidMenuItem($midmenuItem1, true, extraMessage);
|
||||
var afterActionInfo = "Instance " + getVmName(item.name, item.displayname) + " has been created successfully. New password is: " + item.password;
|
||||
var secondRowText = "New password is " + item.password;
|
||||
afterAddingMidMenuItem($midmenuItem1, true, secondRowText);
|
||||
|
||||
var afterActionInfo = "Instance " + getVmName(item.name, item.displayname) + " has been created successfully. New password is " + item.password;
|
||||
$midmenuItem1.data("afterActionInfo", afterActionInfo);
|
||||
|
||||
$("#dialog_info")
|
||||
|
||||
@ -695,7 +695,7 @@ function beforeAddingMidMenuItem() {
|
||||
$("#midmenu_container").prepend($midmenuItem1.show());
|
||||
return $midmenuItem1;
|
||||
}
|
||||
function afterAddingMidMenuItem($midmenuItem1, isSuccessful, extraMessage) {
|
||||
function afterAddingMidMenuItem($midmenuItem1, isSuccessful, secondRowText) {
|
||||
$midmenuItem1.find("#content").removeClass("inaction");
|
||||
$midmenuItem1.find("#spinning_wheel").hide();
|
||||
|
||||
@ -730,8 +730,8 @@ function afterAddingMidMenuItem($midmenuItem1, isSuccessful, extraMessage) {
|
||||
});
|
||||
}
|
||||
|
||||
if(extraMessage != null) {
|
||||
$midmenuItem1.find("#second_row").text(extraMessage);
|
||||
if(secondRowText != null) {
|
||||
$midmenuItem1.find("#second_row").text(secondRowText);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user