Ver Fonte

try to use console button

andre há 4 anos atrás
pai
commit
1d5d832fee
1 ficheiros alterados com 10 adições e 1 exclusões
  1. 10 1
      app/UI/Vms/Buttons/ConsoleButton.php

+ 10 - 1
app/UI/Vms/Buttons/ConsoleButton.php

@@ -43,7 +43,16 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
     public function afterInitContent()
     {
         $this->serviceUrl = new UrlServiceHelper();
-        $this->vmModel = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVmModel();
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $this,
+            'Debug',
+            $this->serviceUrl
+        );
+        
+//        $this->vmModel = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVmModel();
 
 //        $this->htmlAttributes['@click'] = "window.open('{$this->serviceUrl->getNoVncConsoleUrl()}', '', 'width=900,height=700'); return false;";
     }