Просмотр исходного кода

try to disable vmcreate without ressources

andre 4 лет назад
Родитель
Сommit
bf49935792
1 измененных файлов с 2 добавлено и 2 удалено
  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()
     {
-        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->setActive(true);
+        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->setActive(false);
         (new AppParams())->initFromWhmcsParams();
         $view = view();
         $view->initCustomAssetFiles();
@@ -77,7 +77,7 @@ class Vm extends AbstractClientController
 
     public function update()
     {
-        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
+//        sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
         $this->initVm();
         (new AppParams())->initFromWhmcsParams();
         $this->api();