CLOUDSTACK-4758: UI > VM wizard > step 2 > show Root Disk Size field when listing is templates, hide Root Disk Size field when listing is ISOs.

This commit is contained in:
Jessica Wang 2013-10-29 15:19:09 -07:00
parent 5bcd8280fd
commit 1d1f585079

View File

@ -238,8 +238,12 @@
templates: templatesObj,
hypervisors: hypervisorObjs
},
customHidden: function(args) {
return true;
customHidden: function(args) {
if (selectedTemplate == 'select-template') {
return false; //show Root Disk Size field
} else { //selectedTemplate == 'select-iso'
return true; //hide Root Disk Size field
}
}
});
},