F #5757: Improve capacity range on VM instantiation (#1824)

(cherry picked from commit 5b98877648)
This commit is contained in:
Sergio Betanzos authored and Tino Vazquez committed 2022-03-03 10:50:50 +01:00
1 parent 5bcfcf2501
commit 720ded5717
2 files changed
+18 -1

No files matched your search

@@ -110,6 +110,10 @@ define(function(require) {
attr.min = 0.01;
}
if (['range', 'range-float'].includes(attr.type)) {
attr.readonly = true
}
input = UserInputs.attributeInput(attr);
if (attr.type != "range-float"){
@@ -132,6 +136,10 @@ define(function(require) {
attr.min = 1;
}
if (['range', 'range-float'].includes(attr.type)) {
attr.readonly = true
}
input = UserInputs.attributeInput(attr);
if (attr.type != "range"){
@@ -238,6 +246,14 @@ define(function(require) {
attr.mandatory = true;
}
if (String(element.TEMPLATE.HYPERVISOR).toLowerCase() === "vcenter") {
attr.step = 4;
}
if (['range', 'range-float'].includes(attr.type)) {
attr.readonly = true
}
if(attr.min == undefined){
attr.min = 1;
}
@@ -41,6 +41,7 @@
{{#if disabled}}disabled="true"{{/if}}/>
<input type="number" class="visor"
data-min="{{min}}" data-max="{{max_value}}"
value="{{initial}}" required/>
value="{{initial}}" required
{{#if readonly}} readonly {{/if}} />
</div>
</div>