Jelajahi Sumber

try to reenable vmcreate after delete action

andre 4 tahun lalu
induk
melakukan
4eabe199be
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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();