wip
This commit is contained in:
1 parent
04589f6343
commit
e661474891
1 file changed
+2
-4
@@ -12,7 +12,6 @@ use App\Models\StatistikoDetail;
|
|||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
use Filament\Widgets\Widget;
|
use Filament\Widgets\Widget;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Log;
|
|
||||||
use Livewire\Attributes\On;
|
use Livewire\Attributes\On;
|
||||||
|
|
||||||
class PlayerPropsDrop extends Widget
|
class PlayerPropsDrop extends Widget
|
||||||
@@ -68,8 +67,6 @@ class PlayerPropsDrop extends Widget
|
|||||||
$this->team_name = SofaScoreRosa::where('ss_team_id', $team_id)->value('ss_team_name');
|
$this->team_name = SofaScoreRosa::where('ss_team_id', $team_id)->value('ss_team_name');
|
||||||
$this->team_id = $team_id;
|
$this->team_id = $team_id;
|
||||||
$this->loadPlacement();
|
$this->loadPlacement();
|
||||||
|
|
||||||
$this->dispatch('update-players', players: $this->players);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[On('lineup-update')]
|
#[On('lineup-update')]
|
||||||
@@ -152,6 +149,7 @@ class PlayerPropsDrop extends Widget
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->dispatch('update-players', players: $this->players);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function storePlacement()
|
public function storePlacement()
|
||||||
@@ -214,7 +212,7 @@ class PlayerPropsDrop extends Widget
|
|||||||
|
|
||||||
$this->storePlacement();
|
$this->storePlacement();
|
||||||
|
|
||||||
$this->dispatch('update-players', players: $this->players);
|
$this->loadPlacement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user