Explorar el Código

try to reenable vmcreate after delete action

andre hace 4 años
padre
commit
4eabe199be
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Http/Client/Vm.php

+ 1 - 1
app/Http/Client/Vm.php

@@ -34,6 +34,7 @@ class Vm extends AbstractClientController
      */
     public function index()
     {
+        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
         if ($this->getWhmcsParamByKey('status') != 'Active')
         {
             return;
@@ -78,7 +79,6 @@ class Vm extends AbstractClientController
     public function update()
     {
 //        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
-        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
         $this->initVm();
         (new AppParams())->initFromWhmcsParams();
         $this->api();