Browse Source

try to use console button

andre 4 năm trước cách đây
mục cha
commit
350d3eeaab
1 tập tin đã thay đổi với 11 bổ sung2 xóa
  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()
     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)
     public function setRawUrl($url)