Commit bb91b8ad authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(fai) Hide and disable disk options for RAID and LVM

issue #5821
parent cde8f903
......@@ -282,6 +282,10 @@ class faiDiskEntry extends simplePlugin
$this->attributesAccess['lvmDevices']->setDisabled(TRUE);
$this->attributesAccess['lvmDevices']->setVisible(FALSE);
}
if ($this->FAIdiskType != 'disk') {
$this->attributesAccess['disklabel']->setDisabled(TRUE);
$this->attributesAccess['disklabel']->setVisible(FALSE);
}
if ($disk) {
$this->is_edit = TRUE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment