|
|
@@ -67,15 +67,6 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
|
|
|
$createButton->setIcon('lu-zmdi lu-zmdi-plus');
|
|
|
$createButton->replaceClasses(['lu-btn lu-btn--primary']);
|
|
|
$vmCreateSidebar = $vmCreateSidebar ? $vmCreateSidebar : sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate");
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'proxmoxCloud',
|
|
|
- __FUNCTION__,
|
|
|
- $vmCreateSidebar,
|
|
|
- 'Debug',
|
|
|
- ''
|
|
|
- );
|
|
|
-
|
|
|
//deaktivate createVM Button in case of lack of ressources
|
|
|
if($resurceManager->disk()->free() < $resurceManager->disk()->getMin() || $resurceManager->vcpus()->free() < $resurceManager->vcpus()->getMin() || $resurceManager->memory()->free() < $resurceManager->memory()->getMin()) {
|
|
|
$createButton->addHtmlAttribute("disabled",true);
|