Root cause analysis:
- Changed from dispatch to property binding broke the activity monitor completely
- ActivityMonitor component expects activityMonitor event, not property binding
- Original approach was correct: use dispatch + event listeners
Solution:
- Revert to original dispatch('activityMonitor', $activity->id) calls
- Use @if conditionals to render only one monitor at a time (removes from DOM)
- Add unique wire:key to each monitor instance to prevent conflicts
- S3 download monitor: wire:key="s3-download-{{ $resource->uuid }}"
- Database restore monitor: wire:key="database-restore-{{ $resource->uuid }}"
This ensures:
- Activity monitors display correctly when processes start
- Only one monitor is rendered at a time (S3 download OR database restore)
- Each monitor has unique identity via wire:key
- Event listeners work as designed
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| Backup | ||
| Clickhouse | ||
| Dragonfly | ||
| Keydb | ||
| Mariadb | ||
| Mongodb | ||
| Mysql | ||
| Postgresql | ||
| Redis | ||
| BackupEdit.php | ||
| BackupExecutions.php | ||
| BackupNow.php | ||
| Configuration.php | ||
| CreateScheduledBackup.php | ||
| Heading.php | ||
| Import.php | ||
| InitScript.php | ||
| ScheduledBackups.php | ||