|
|
@@ -103,7 +103,7 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
|
|
|
$sidebars = sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChildren();
|
|
|
//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()) {
|
|
|
-/* $this->createButton->addHtmlAttribute("disabled",true);
|
|
|
+ $this->createButton->addHtmlAttribute("disabled",true);
|
|
|
//delete sidebar button
|
|
|
if (isset($sidebars['vmcreate'])) {
|
|
|
sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
|
|
|
@@ -112,7 +112,7 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
|
|
|
if (!isset($sidebars['vmcreate'])) {
|
|
|
sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->add($this->createSidebar);
|
|
|
}
|
|
|
- // $this->createButton->addHtmlAttribute("enabled",true); */
|
|
|
+ // $this->createButton->addHtmlAttribute("enabled",true);
|
|
|
|
|
|
/* logModuleCall(
|
|
|
'proxmoxCloud',
|