Browse Source

try to reenable vmcreate after delete action

andre 4 năm trước cách đây
mục cha
commit
4eabe199be
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();