Browse Source

try to use console button

andre 4 years ago
parent
commit
a22d8fc4e0
1 changed files with 3 additions and 5 deletions
  1. 3 5
      app/UI/Vms/Buttons/ConsoleButton.php

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

@@ -31,11 +31,9 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
 
 
     public function initContent()
     public function initContent()
     {
     {
-        $redirectButton = new RedirectButton('novnc');
-        $redirectButton->setImageUrl(BuildUrl::getAppAssetsURL() . DS . 'img' . DS . 'buttons' . DS . 'novnc.png');
-        $redirectButton->setHref("#");
-        $redirectButton->setIcon('lu-zmdi lu-zmdi-fullscreen');
-        $this->addButton($redirectButton);
+        $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('consoleButton');
         $this->setDisableByColumnValue("vmid", 0);
         $this->setDisableByColumnValue("vmid", 0);
     }
     }