Ver código fonte

try to disable delete button on root disk

andre 4 anos atrás
pai
commit
c156c80740
1 arquivos alterados com 1 adições e 1 exclusões
  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("scsi0", true);
+        $this->setDisableByColumnValue("Disk 1", true);
         $this->switchToRemoveBtn();
         $this->switchToRemoveBtn();
         $this->initLoadModalAction(new DeleteModal());
         $this->initLoadModalAction(new DeleteModal());
     }
     }