mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CLOUDSTACK-537: Fix for instance wizard
When using SG-enabled advanced zone, fix case where 'add guest network' form shows up in select network step -- adding a guest network via the wizard is not supported in this type of setup.
This commit is contained in:
parent
6db719d58b
commit
a4c413bc13
@ -5778,6 +5778,10 @@ label.error {
|
|||||||
height: 223px;
|
height: 223px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.multi-wizard.instance-wizard .select-network.no-add-network .select table .select-container {
|
||||||
|
height: 282px;
|
||||||
|
}
|
||||||
|
|
||||||
.multi-wizard.instance-wizard .select-network .select.new-network table .select-container {
|
.multi-wizard.instance-wizard .select-network .select.new-network table .select-container {
|
||||||
height: 29px;
|
height: 29px;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
@ -5802,6 +5806,10 @@ label.error {
|
|||||||
margin: -17px 0 0;
|
margin: -17px 0 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.multi-wizard.instance-wizard .select-network.no-add-network .select.new-network {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.multi-wizard.instance-wizard .select-network .main-desc {
|
.multi-wizard.instance-wizard .select-network .main-desc {
|
||||||
width: 252px;
|
width: 252px;
|
||||||
top: 12px;
|
top: 12px;
|
||||||
|
|||||||
@ -284,6 +284,7 @@
|
|||||||
$networkStep.find("#from_instance_page_2").show();
|
$networkStep.find("#from_instance_page_2").show();
|
||||||
$networkStep.find("#from_vpc_tier").text("");
|
$networkStep.find("#from_vpc_tier").text("");
|
||||||
$networkStep.find("#from_vpc_tier").hide();
|
$networkStep.find("#from_vpc_tier").hide();
|
||||||
|
$networkStepContainer.removeClass('next-use-security-groups');
|
||||||
} else { // Advanced SG-enabled zone
|
} else { // Advanced SG-enabled zone
|
||||||
step5ContainerType = 'select-advanced-sg';
|
step5ContainerType = 'select-advanced-sg';
|
||||||
}
|
}
|
||||||
@ -384,8 +385,15 @@
|
|||||||
});
|
});
|
||||||
//get network offerings (end) ***
|
//get network offerings (end) ***
|
||||||
|
|
||||||
|
$networkStepContainer.removeClass('repeat next-use-security-groups');
|
||||||
|
|
||||||
if (step5ContainerType == 'select-advanced-sg') {
|
if (step5ContainerType == 'select-advanced-sg') {
|
||||||
$networkStepContainer.addClass('repeat next-use-security-groups');
|
$networkStepContainer.addClass('repeat next-use-security-groups');
|
||||||
|
|
||||||
|
// Add guest network is disabled
|
||||||
|
$networkStepContainer.find('.select-network').addClass('no-add-network');
|
||||||
|
} else {
|
||||||
|
$networkStepContainer.find('.select-network').removeClass('no-add-network');
|
||||||
}
|
}
|
||||||
|
|
||||||
args.response.success({
|
args.response.success({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user