mirror of
https://github.com/unraid/webgui.git
synced 2026-05-04 00:39:32 -05:00
Add acknowledge all button
This commit is contained in:
@@ -125,6 +125,7 @@ case 't1':
|
||||
$groups[] = "IOMMU "._("Removed");
|
||||
$groups[] = "\tR[{$removeddata['device']['vendor_id']}:{$removeddata['device']['device_id']}] ".str_replace("0000:","",$removedpci)." ".trim($removeddata['device']['description'],"\n");
|
||||
}
|
||||
$ackparm = "";
|
||||
foreach ($groups as $line) {
|
||||
if (!$line) continue;
|
||||
if ($line[0]=='I') {
|
||||
@@ -166,6 +167,7 @@ case 't1':
|
||||
echo "<i class=\"fa fa-warning fa-fw orange-text\" title=\""._('PCI Change')."\n"._('Click to acknowledge').".\" onclick=\"ackPCI('".htmlentities($pciaddress)."','".htmlentities($pci_device_diffs[$pciaddress]['status'])."')\"></i>";
|
||||
echo _("PCI Device change");
|
||||
echo " "._("Action").":".ucfirst(_($pci_device_diffs[$pciaddress]['status']))." ";
|
||||
$ackparm .= $pciaddress.",".$pci_device_diffs[$pciaddress]['status'].";";
|
||||
if ($pci_device_diffs[$pciaddress]['status']!="removed") echo $pci_device_diffs[$pciaddress]['device']['description'];
|
||||
echo "</td></tr>";
|
||||
if ($pci_device_diffs[$pciaddress]['status']=="changed") {
|
||||
@@ -224,8 +226,10 @@ case 't1':
|
||||
if (file_exists("/var/log/vfio-pci") && filesize("/var/log/vfio-pci")) {
|
||||
echo '<input id="viewlog" type="button" value="'._('View VFIO-PCI Log').'" onclick="openTerminal(\'log\',\'vfio-pci\',\'vfio-pci\')">';
|
||||
}
|
||||
if ($ackparm == "") $ackdisable =" disabled "; else $ackdisable = "";
|
||||
echo '<input id="applycfg" type="submit" disabled value="'._('Bind selected to VFIO at Boot').'" onclick="applyCfg();" '.(isset($noiommu) ? "style=\"display:none\"" : "").'>';
|
||||
echo '<span id="warning"></span>';
|
||||
echo '<input id="applypci" type="submit"'.$ackdisable.' value="'._('Acknowledge all PCI changes').'" onclick="ackPCI(\''.htmlentities($ackparm).'\',\'all\')" >';
|
||||
echo '</td></tr>';
|
||||
echo <<<EOT
|
||||
<script>
|
||||
|
||||
Reference in New Issue
Block a user