|
@@ -70,11 +70,9 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
|
|
|
if($resurceManager->disk()->free() < $resurceManager->disk()->getMin() || $resurceManager->vcpus()->free() < $resurceManager->vcpus()->getMin() || $resurceManager->memory()->free() < $resurceManager->memory()->getMin()) {
|
|
if($resurceManager->disk()->free() < $resurceManager->disk()->getMin() || $resurceManager->vcpus()->free() < $resurceManager->vcpus()->getMin() || $resurceManager->memory()->free() < $resurceManager->memory()->getMin()) {
|
|
|
$createButton->addHtmlAttribute("disabled",true);
|
|
$createButton->addHtmlAttribute("disabled",true);
|
|
|
//delete sidebar button
|
|
//delete sidebar button
|
|
|
-// $this->slVmCreateChild = sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate");
|
|
|
|
|
sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
|
|
sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
|
|
|
}
|
|
}
|
|
|
$this->addTitleButton($createButton);
|
|
$this->addTitleButton($createButton);
|
|
|
- $this->createButton = $createButton;
|
|
|
|
|
}
|
|
}
|
|
|
//import
|
|
//import
|
|
|
if($isAdmin){
|
|
if($isAdmin){
|