Merge branch 'v4-next' into patricio-deploy-proxy

This commit is contained in:
Joao Patricio
2023-05-03 09:33:01 +01:00
6 changed files with 39 additions and 19 deletions

View File

@@ -54,6 +54,11 @@ class Form extends Component
} catch (\Exception $e) {
}
}
public function delete()
{
$this->server->delete();
redirect()->route('dashboard');
}
public function submit()
{
$this->validate();

View File

@@ -45,6 +45,10 @@ class ByIp extends Component
}
public function submit()
{
if (!$this->private_key_id) {
$this->addError('private_key_id', 'The private key field is required.');
return;
}
$server = Server::create([
'name' => $this->name,
'description' => $this->description,