|
|
@@ -27,15 +27,15 @@ use ModulesGarden\Servers\ProxmoxCloudVps\Core\UI\Widget\Buttons\ButtonDataTable
|
|
|
|
|
|
class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
|
|
|
{
|
|
|
- protected $icon = 'lu-zmdi lu-zmdi-desktop-windows';
|
|
|
+ protected $icon = 'lu-zmdi lu-zmdi-edit';
|
|
|
|
|
|
public function initContent()
|
|
|
{
|
|
|
- $this->setImageUrl(BuildUrl::getAppAssetsURL() . DS . 'img' . DS . 'buttons' . DS . 'novnc.png');
|
|
|
- $this->setHref("#");
|
|
|
- $this->setIcon('lu-zmdi lu-zmdi-fullscreen');
|
|
|
- $this->initIds('consoleButton');
|
|
|
+ $this->initIds('redirectButton');
|
|
|
$this->setDisableByColumnValue("vmid", 0);
|
|
|
+ $url ="clientarea.php?action=productdetails&id={$this->getWhmcsParamByKey('serviceid')}&modop=custom&a=management&mg-page=vm";
|
|
|
+ $this->setRawUrl($url)
|
|
|
+ ->setRedirectParams(['vm' => ':id']);
|
|
|
}
|
|
|
|
|
|
public function afterInitContent()
|