|
|
@@ -24,6 +24,7 @@ use ModulesGarden\Servers\ProxmoxCloudVps\Core\Helper\BuildUrl;
|
|
|
use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\AdminArea;
|
|
|
use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Interfaces\ClientArea;
|
|
|
use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Buttons\ButtonDataTableModalAction;
|
|
|
+use ModulesGarden\Servers\ProxmoxCloudVps\App\Helpers\UrlServiceHelper;
|
|
|
|
|
|
class ManageButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
{
|
|
|
@@ -91,9 +92,20 @@ class ManageButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
|
|
|
protected function updateHtmlAttributesByRedirectParams()
|
|
|
{
|
|
|
+ $serviceUrl = new UrlServiceHelper();
|
|
|
foreach ($this->redirectParams as $key => $value)
|
|
|
{
|
|
|
$this->updateHtmlAttribute($key, $value);
|
|
|
+
|
|
|
+ logModuleCall(
|
|
|
+ 'proxmoxCloud',
|
|
|
+ __FUNCTION__,
|
|
|
+ $this->redirectParams,
|
|
|
+ 'Debug',
|
|
|
+ $serviceUrl->getNoVncConsoleUrl()
|
|
|
+ );
|
|
|
+
|
|
|
+// $this->addHtmlAttribute("onclick", "window.open('{$serviceUrl->getNoVncConsoleUrl()}', '', 'width=900,height=700'); return false;");
|
|
|
}
|
|
|
}
|
|
|
|