@@ -74,6 +74,7 @@ class VmsDataTable extends DataTable implements ClientArea, AdminArea
sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
}
$this->addTitleButton($createButton);
+ $this->createButton = $createButton;
//import
if($isAdmin){
@@ -25,6 +25,9 @@ class DeleteVmProvider extends BaseDataProvider implements ClientArea
public function update()
{
+ if ($this->createButton) {
+ $this->createButton->addHtmlAttribute("disabled",false);
+ }
public function delete()