|
@@ -43,7 +43,9 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
public function afterInitContent()
|
|
public function afterInitContent()
|
|
|
{
|
|
{
|
|
|
$this->serviceUrl = new UrlServiceHelper();
|
|
$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)
|
|
public function setRawUrl($url)
|