fix: preselect s3 storage if available

This commit is contained in:
Andras Bacsai 2023-10-20 09:38:13 +02:00
parent f470ebbbe0
commit 33d38ccf40

View File

@ -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
{