|
|
@@ -136,21 +136,13 @@ class DiskDataTable extends DataTable implements ClientArea
|
|
|
];
|
|
|
if ( $entity->getName() =='disk-1' ) {
|
|
|
$actionButtons = $this->getActionButtons();
|
|
|
- $actionButtons['deleteDiskButton']->addClass('disabled');
|
|
|
- logModuleCall(
|
|
|
- 'proxmoxCloud',
|
|
|
- __FUNCTION__,
|
|
|
- $actionButtons['deleteDiskButton'],
|
|
|
- 'Debug',
|
|
|
- $entity->getId()
|
|
|
- );
|
|
|
+ $disableButton = $actionButtons['deleteDiskButton'];
|
|
|
}
|
|
|
}
|
|
|
$dataProv = new ArrayDataProvider();
|
|
|
$dataProv->setDefaultSorting("name", 'ASC');
|
|
|
$dataProv->setData($data);
|
|
|
$this->setDataProvider($dataProv);
|
|
|
+ $disableButton->addClass('disabled');
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|