fix: broadcast S3DownloadFinished event to hide download message

- Make S3DownloadFinished implement ShouldBroadcast
- Add listener in Import component to handle S3DownloadFinished event
- Set s3DownloadInProgress to false when download completes
- This hides "Downloading from S3..." message after download finishes
- Follows the same pattern as DatabaseStatusChanged event

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Andras BacsaiandClaude committed 2025-11-14 10:43:20 +01:00
1 parent 18f30b7fab
commit 23fdad1d9f
2 files changed
+35 -2

No files matched your search

+6
View File
@@ -74,9 +74,15 @@ class Import extends Component
return [
"echo-private:user.{$userId},DatabaseStatusChanged" => '$refresh',
"echo-private:user.{$userId},S3DownloadFinished" => 'handleS3DownloadFinished',
];
}
public function handleS3DownloadFinished(): void
{
$this->s3DownloadInProgress = false;
}
public function mount()
{
if (isDev()) {