Explorar o código

try to reenable vmcreate after delete action

andre %!s(int64=4) %!d(string=hai) anos
pai
achega
4eabe199be
Modificáronse 1 ficheiros con 1 adicións e 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();