Prechádzať zdrojové kódy

try to disable delete button on root disk

andre 4 rokov pred
rodič
commit
cddd5d203f
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/UI/Disk/Buttons/DeleteButton.php

+ 1 - 1
app/UI/Disk/Buttons/DeleteButton.php

@@ -29,7 +29,7 @@ class DeleteButton extends ButtonDataTableModalAction implements ClientArea
     public function initContent()
     public function initContent()
     {
     {
         $this->initIds('deleteDiskButton');
         $this->initIds('deleteDiskButton');
-        $this->setDisableByColumnValue("Disk 1", true);
+        $this->setDisableByColumnValue("Name", "Disk 1");
         $this->switchToRemoveBtn();
         $this->switchToRemoveBtn();
         $this->initLoadModalAction(new DeleteModal());
         $this->initLoadModalAction(new DeleteModal());
     }
     }