andre 4 лет назад
Родитель
Сommit
d964bd964b
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/UI/Vms/Buttons/ConsoleButton.php

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

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