Skip to content

Commit ba4b04f

Browse files
authored
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
1 parent 1da76d2 commit ba4b04f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ui/scripts/instances.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,11 @@
21962196
return;
21972197

21982198
if (selectedServiceofferingObj.iscustomized == true) {
2199-
$form.find('.form-item[rel=cpuSpeed]').css('display', 'inline-block');
2199+
if (selectedServiceofferingObj.cpuspeed) {
2200+
$form.find('.form-item[rel=cpuSpeed]').hide();
2201+
} else {
2202+
$form.find('.form-item[rel=cpuSpeed]').css('display', 'inline-block');
2203+
}
22002204
$form.find('.form-item[rel=cpuNumber]').css('display', 'inline-block');
22012205
$form.find('.form-item[rel=memory]').css('display', 'inline-block');
22022206
} else {

0 commit comments

Comments
 (0)