瀏覽代碼

change test to slider for disk create

andre 4 年之前
父節點
當前提交
61be06f823
共有 2 個文件被更改,包括 10 次插入1 次删除
  1. 1 1
      app/UI/Disk/Buttons/DeleteButton.php
  2. 9 0
      app/UI/Disk/Buttons/UpdateButton.php

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

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

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

@@ -31,5 +31,14 @@ class UpdateButton extends ButtonDataTableModalAction implements ClientArea
         parent::initContent();
         $this->initIds('updateDiskButton');
         $this->initLoadModalAction(new UpdateModal());
+
+        logModuleCall(
+            'proxmoxCloud',
+            __FUNCTION__,
+            $this,
+            'Debug',
+            $vm->getHtmlAttributes()
+        );
+
     }
 }