mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
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:
commit
4e06779c40
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user