fix: preselect s3 storage if available
This commit is contained in:
parent
f470ebbbe0
commit
33d38ccf40
@ -22,6 +22,11 @@ class CreateScheduledBackup extends Component
|
||||
'frequency' => 'Backup Frequency',
|
||||
'save_s3' => 'Save to S3',
|
||||
];
|
||||
public function mount() {
|
||||
if ($this->s3s->count() > 0) {
|
||||
$this->s3_storage_id = $this->s3s->first()->id;
|
||||
}
|
||||
}
|
||||
|
||||
public function submit(): void
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user