Browse Source

try to use console button

andre 4 years ago
parent
commit
4347d14632

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

@@ -41,8 +41,8 @@ class ConsoleButton extends ButtonDataTableModalAction implements ClientArea
 
     public function afterInitContent()
     {
-        $this->htmlAttributes['@click.middle'] = 'popup($event, ' . $this->parseCustomParams() . ',' . '\'width=900,height=700\'' . ')';
-        $this->htmlAttributes['@click'] = 'popup($event, ' . $this->parseCustomParams() . ',' . '"width=900,height=700"' . ')';
+        $this->htmlAttributes['@click.middle'] = 'popup($event, ' . $this->parseCustomParams() . ',' . '' . ')';
+        $this->htmlAttributes['@click'] = 'popup($event, ' . $this->parseCustomParams() . ',' . '\'width=900,height=700\'' . ')';
 
         logModuleCall(
             'proxmoxCloud',

+ 1 - 1
templates/client/default/assets/js/defaultComponents/__vue_app_object.js

@@ -581,7 +581,7 @@ var mgDefauleVueObject = {
                     if (targetSize) {
                         window.open(self.targetUrl, '', targetSize);
                     } else {
-                        window.open(self.targetUrl, '', 'width=300,height=200');
+                        window.open(self.targetUrl, '_blank');
                     }
                 },
                 submitFormByEvent : function(event){