|
@@ -34,6 +34,7 @@ class Vm extends AbstractClientController
|
|
|
*/
|
|
*/
|
|
|
public function index()
|
|
public function index()
|
|
|
{
|
|
{
|
|
|
|
|
+ sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
|
|
|
if ($this->getWhmcsParamByKey('status') != 'Active')
|
|
if ($this->getWhmcsParamByKey('status') != 'Active')
|
|
|
{
|
|
{
|
|
|
return;
|
|
return;
|
|
@@ -78,7 +79,6 @@ class Vm extends AbstractClientController
|
|
|
public function update()
|
|
public function update()
|
|
|
{
|
|
{
|
|
|
// sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
|
|
// sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmupdate")->setActive(true);
|
|
|
- sl("sidebar")->getSidebar("virtualMachinesProxmoxCloudVps")->getChild("vmcreate")->delete();
|
|
|
|
|
$this->initVm();
|
|
$this->initVm();
|
|
|
(new AppParams())->initFromWhmcsParams();
|
|
(new AppParams())->initFromWhmcsParams();
|
|
|
$this->api();
|
|
$this->api();
|