فهرست منبع

try to disable delete button on root disk

andre 4 سال پیش
والد
کامیت
545b75c270
1فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 9 9
      app/UI/Disk/Pages/DiskDataTable.php

+ 9 - 9
app/UI/Disk/Pages/DiskDataTable.php

@@ -65,15 +65,6 @@ class DiskDataTable extends DataTable implements ClientArea
         $this->addActionButton(new UpdateButton());
         //Delete
         $this->addActionButton(new DeleteButton());
-
-        logModuleCall(
-            'proxmoxCloud',
-            __FUNCTION__,
-            $this->getData() ,
-            'Debug',
-            $this->getRawTitle()
-        );
-        
     }
 
     protected function loadHtml()
@@ -143,6 +134,15 @@ class DiskDataTable extends DataTable implements ClientArea
                 "bytes"  => $entity->getBytes(),
                 "master" => $entity->isMaster(),
             ];
+
+            logModuleCall(
+                'proxmoxCloud',
+                __FUNCTION__,
+                $entity,
+                'Debug',
+                ''
+            );
+            
         }
         $dataProv = new ArrayDataProvider();
         $dataProv->setDefaultSorting("name", 'ASC');