Browse Source

try to use console button

andre 4 năm trước cách đây
mục cha
commit
459e93a1c1

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

@@ -35,7 +35,7 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
 //        $this->vmModel = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVmModel();
 //        $this->vmModel = \ModulesGarden\ProxmoxAddon\Core\Helper\sl('Vm')->getVmModel();
         $this->initIds('consoleButton');
         $this->initIds('consoleButton');
         $this->setDisableByColumnValue("vmid", 0);
         $this->setDisableByColumnValue("vmid", 0);
-//        $url = (new UrlServiceHelper())->getNoVncConsoleUrl();
+        $url = (new UrlServiceHelper())->getNoVncConsoleUrl();
         $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=vm";
         $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=vm";
         $this->setRawUrl($url)
         $this->setRawUrl($url)
             ->setRedirectParams(['vm' => ':id']);
             ->setRedirectParams(['vm' => ':id']);