Merge pull request #353 from MihaelaStoica/CP-10926

CP-10926: Make the textbox on Cloud-Config Parameters page read-only (instead of disabled) if the config drive parameters cannot be changed
This commit is contained in:
Gabor Apati-Nagy 2015-02-26 11:18:09 +00:00
commit 4e06779c40

View File

@ -169,7 +169,7 @@ namespace XenAdmin.Wizards.NewVMWizard
bool canEdit = inNewVmWizard || vmOrTemplate.is_a_template ||
vmOrTemplate.power_state == vm_power_state.Halted;
ConfigDriveTemplateLabel.Enabled = ConfigDriveTemplateTextBox.Enabled = canEdit;
ConfigDriveTemplateTextBox.ReadOnly = !canEdit;
warningsTable.Visible = !canEdit;
}