Bladeren bron

try to use console button

andre 4 jaren geleden
bovenliggende
commit
788a4266dd
1 gewijzigde bestanden met toevoegingen van 9 en 10 verwijderingen
  1. 9 10
      app/UI/Vms/Pages/VmsDataTable.php

+ 9 - 10
app/UI/Vms/Pages/VmsDataTable.php

@@ -85,16 +85,6 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
         if (isAdmin() || $this->configuration()->isPermissionNovnc()){
         if (isAdmin() || $this->configuration()->isPermissionNovnc()){
             //console
             //console
             $this->addActionButton(new ConsoleButton());
             $this->addActionButton(new ConsoleButton());
-            $serviceUrl = new UrlServiceHelper();
-/*            $vmModel = VmModel::ofId($row->id)->firstOrFail();
-
-            logModuleCall(
-                'proxmoxCloud',
-                __FUNCTION__,
-                $vmModel,
-                'Debug',
-            ); */
-
             $consoleUrl = "http://www.symbionet.de";
             $consoleUrl = "http://www.symbionet.de";
             $this->actionButtons['consoleButton']->setConsoleUrl($consoleUrl);
             $this->actionButtons['consoleButton']->setConsoleUrl($consoleUrl);
         }
         }
@@ -173,6 +163,15 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
         $dataProv->setDefaultSorting("name", 'ASC');
         $dataProv->setDefaultSorting("name", 'ASC');
         $dataProv->setData($query);
         $dataProv->setData($query);
         $this->setDataProvider($dataProv);
         $this->setDataProvider($dataProv);
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $query,
+            'Debug',
+            $dataProv
+        );
+        
     }
     }
 
 
     public function isViewFooter()
     public function isViewFooter()