mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: Hide cpuspeed for custom constrained offering (#3996)
For customer constrained offering, the cpu speed is fixed. Therefore the 'CpuSpeed' field should be hidden for customer constrained offering when change vm offering on UI. It is visible only for unconstrained offering. This is regression issue of #3245
This commit is contained in:
parent
1da76d27f1
commit
ba4b04ff37
@ -2196,7 +2196,11 @@
|
||||
return;
|
||||
|
||||
if (selectedServiceofferingObj.iscustomized == true) {
|
||||
$form.find('.form-item[rel=cpuSpeed]').css('display', 'inline-block');
|
||||
if (selectedServiceofferingObj.cpuspeed) {
|
||||
$form.find('.form-item[rel=cpuSpeed]').hide();
|
||||
} else {
|
||||
$form.find('.form-item[rel=cpuSpeed]').css('display', 'inline-block');
|
||||
}
|
||||
$form.find('.form-item[rel=cpuNumber]').css('display', 'inline-block');
|
||||
$form.find('.form-item[rel=memory]').css('display', 'inline-block');
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user