mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
Resolves Follow Refresh Issue
This commit is contained in:
parent
4b4abceb1f
commit
08e4acaf04
@ -75,6 +75,11 @@ class FollowCard extends Component
|
|||||||
#[Locked]
|
#[Locked]
|
||||||
public Collection $followUsers;
|
public Collection $followUsers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The events the component should listen for.
|
||||||
|
*/
|
||||||
|
protected $listeners = ['refreshComponent' => '$refresh'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of users being displayed.
|
* The number of users being displayed.
|
||||||
*/
|
*/
|
||||||
@ -148,6 +153,8 @@ class FollowCard extends Component
|
|||||||
{
|
{
|
||||||
// Update the collection of profile user's followers (or following).
|
// Update the collection of profile user's followers (or following).
|
||||||
$this->followUsers = $this->profileUser->{$this->relationship}()->get();
|
$this->followUsers = $this->profileUser->{$this->relationship}()->get();
|
||||||
|
|
||||||
|
$this->dispatch('refreshComponent');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user