fix: database backups
This commit is contained in:
@@ -8,6 +8,7 @@ class BackupEdit extends Component
|
||||
{
|
||||
public $backup;
|
||||
public $s3s;
|
||||
public ?string $status = null;
|
||||
public array $parameters;
|
||||
|
||||
protected $rules = [
|
||||
|
||||
@@ -64,7 +64,7 @@ class Create extends Component
|
||||
}
|
||||
$this->storage->team_id = currentTeam()->id;
|
||||
$this->storage->testConnection();
|
||||
$this->emit('success', 'Connection is working. Tested with "ListObjectsV2" action.');
|
||||
$this->storage->is_usable = true;
|
||||
$this->storage->save();
|
||||
return redirect()->route('team.storages.show', $this->storage->uuid);
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
@@ -9,6 +9,7 @@ class Form extends Component
|
||||
{
|
||||
public S3Storage $storage;
|
||||
protected $rules = [
|
||||
'storage.is_usable' => 'nullable|boolean',
|
||||
'storage.name' => 'nullable|min:3|max:255',
|
||||
'storage.description' => 'nullable|min:3|max:255',
|
||||
'storage.region' => 'required|max:255',
|
||||
@@ -18,6 +19,7 @@ class Form extends Component
|
||||
'storage.endpoint' => 'required|url|max:255',
|
||||
];
|
||||
protected $validationAttributes = [
|
||||
'storage.is_usable' => 'Is Usable',
|
||||
'storage.name' => 'Name',
|
||||
'storage.description' => 'Description',
|
||||
'storage.region' => 'Region',
|
||||
|
||||
Reference in New Issue
Block a user