Przeglądaj źródła

try to disable delete button on root disk

andre 4 lat temu
rodzic
commit
a08032c7f8
1 zmienionych plików z 9 dodań i 0 usunięć
  1. 9 0
      app/UI/Disk/Buttons/DeleteButton.php

+ 9 - 0
app/UI/Disk/Buttons/DeleteButton.php

@@ -32,6 +32,15 @@ class DeleteButton extends ButtonDataTableModalAction implements ClientArea
         $this->setDisableByColumnValue("master", true);
         $this->switchToRemoveBtn();
         $this->initLoadModalAction(new DeleteModal());
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $this->getId() ,
+            'Debug',
+            $this
+        );
+        
         $this->addClass('disabled');
     }