Procházet zdrojové kódy

try to use console button

andre před 4 roky
rodič
revize
350d3eeaab
1 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 11 2
      app/UI/Vms/Buttons/ConsoleButton.php

+ 11 - 2
app/UI/Vms/Buttons/ConsoleButton.php

@@ -40,8 +40,17 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
 
     public function afterInitContent()
     {
-        $this->htmlAttributes['@click.middle'] = 'open($event, ' . $this->parseCustomParams() . ', true)';
-        $this->htmlAttributes['@click'] = 'open($event, ' . $this->parseCustomParams() . ')';
+        $this->htmlAttributes['@click.middle'] = 'redirect($event, ' . $this->parseCustomParams() . ', true)';
+        $this->htmlAttributes['@click'] = 'redirect($event, ' . $this->parseCustomParams() . ')';
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $this->parseCustomParams(),
+            'Debug',
+            $this->htmlAttributes
+        );
+        
     }
 
     public function setRawUrl($url)