Bladeren bron

try to use console button

andre 4 jaren geleden
bovenliggende
commit
09971d5092
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 5 5
      app/UI/Vms/Buttons/ConsoleButton.php

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

@@ -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()