소스 검색

try to reenable vmcreate after delete action

andre 4 년 전
부모
커밋
4eabe199be
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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();