소스 검색

try to use console button

andre 4 년 전
부모
커밋
4347d14632
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      app/UI/Vms/Buttons/ConsoleButton.php
  2. 1 1
      templates/client/default/assets/js/defaultComponents/__vue_app_object.js

+ 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){