Procházet zdrojové kódy

try to reenable vmcreate after delete action

andre před 4 roky
rodič
revize
7d2a055958
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      app/UI/Vms/Pages/VmsDataTable.php

+ 4 - 1
app/UI/Vms/Pages/VmsDataTable.php

@@ -66,7 +66,10 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
             $createButton->setIcon('lu-zmdi lu-zmdi-plus');
             $createButton->replaceClasses(['lu-btn lu-btn--primary']);
             $this->addTitleButton($createButton);
-            $this->createSidebar = sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate");
+            $sidebars = sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChildren();
+            if (isset($sidebars['vmcreate'])) {
+                $this->createSidebar = sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate");
+            }
             $this->createButton = $createButton;
         }
         //import