Browse Source

try to disable vmcreate without ressources

andre 4 years ago
parent
commit
bf49935792
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Client/Vm.php

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

@@ -63,7 +63,7 @@ class Vm extends AbstractClientController
 
 
     public function create()
     public function create()
     {
     {
-        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->setActive(true);
+        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->setActive(false);
         (new AppParams())->initFromWhmcsParams();
         (new AppParams())->initFromWhmcsParams();
         $view = view();
         $view = view();
         $view->initCustomAssetFiles();
         $view->initCustomAssetFiles();
@@ -77,7 +77,7 @@ class Vm extends AbstractClientController
 
 
     public function update()
     public function update()
     {
     {
-        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
+//        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
         $this->initVm();
         $this->initVm();
         (new AppParams())->initFromWhmcsParams();
         (new AppParams())->initFromWhmcsParams();
         $this->api();
         $this->api();