forked from eatvio/eatvio-infra
create two event for plan like
This commit is contained in:
@@ -10,7 +10,7 @@ class LikeCount extends Component
|
||||
{
|
||||
public Plan $plan;
|
||||
|
||||
protected $listeners = ['liked' => '$refresh'];
|
||||
protected $listeners = ['liked-details' => '$refresh', 'liked-footer' => '$refresh'];
|
||||
|
||||
public function mount(Plan $plan)
|
||||
{
|
||||
@@ -19,8 +19,8 @@ class LikeCount extends Component
|
||||
|
||||
public function render()
|
||||
{
|
||||
$this->dispatch('liked');
|
||||
|
||||
$this->dispatch('liked-details');
|
||||
$this->dispatch('liked-footer');
|
||||
return view(
|
||||
'livewire.plan.like-count',
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user