mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-26 18:20:03 +00:00
fix: add updatedActivityId watcher to ActivityMonitor component
- Add updatedActivityId method to watch for changes to activityId property - When activityId is set/updated, automatically hydrate the activity and enable polling - This allows the activity monitor to display content when activityId is bound from parent component - Fixes issue where activity monitor was empty because activity wasn't loaded 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,14 @@ class ActivityMonitor extends Component
|
||||
$this->activity = Activity::find($this->activityId);
|
||||
}
|
||||
|
||||
public function updatedActivityId($value)
|
||||
{
|
||||
if ($value) {
|
||||
$this->hydrateActivity();
|
||||
$this->isPollingActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
public function polling()
|
||||
{
|
||||
$this->hydrateActivity();
|
||||
|
||||
Reference in New Issue
Block a user