wip
This commit is contained in:
1 parent
60aad552fa
commit
4e2b5ec656
2 files changed
+9
-8
No files matched your search
@@ -81,14 +81,14 @@ class PlayerProps extends Page implements HasForms
|
|||||||
$this->form->fill();
|
$this->form->fill();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function canAccess(): bool
|
// public static function canAccess(): bool
|
||||||
{
|
// {
|
||||||
// false blockiert den Zugriff für JEDEN (die Seite ist effektiv deaktiviert)
|
// // false blockiert den Zugriff für JEDEN (die Seite ist effektiv deaktiviert)
|
||||||
// return false;
|
// // return false;
|
||||||
|
|
||||||
// Alternativ an Bedingungen knüpfen:
|
// // Alternativ an Bedingungen knüpfen:
|
||||||
return auth()->user()->hasRole('super_admin');
|
// return auth()->user()->hasRole('super_admin');
|
||||||
}
|
// }
|
||||||
|
|
||||||
public function getWidgetData(): array
|
public function getWidgetData(): array
|
||||||
{
|
{
|
||||||
@@ -341,6 +341,7 @@ class PlayerProps extends Page implements HasForms
|
|||||||
public function setSeasonMode(string $country_id)
|
public function setSeasonMode(string $country_id)
|
||||||
{
|
{
|
||||||
$this->season_mode = SofaScoreCategory::where('id', $country_id)->value('season_mode');
|
$this->season_mode = SofaScoreCategory::where('id', $country_id)->value('season_mode');
|
||||||
|
|
||||||
$this->dispatch('season_mode-update', season_mode: $this->season_mode);
|
$this->dispatch('season_mode-update', season_mode: $this->season_mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -231,7 +231,7 @@ class PlayerPropsDrop extends Widget
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[On('season_mode-update')]
|
#[On('season_mode-update')]
|
||||||
public function setSeason(string $season_mode)
|
public function setSeason(string|int $season_mode)
|
||||||
{
|
{
|
||||||
$this->season_mode = $season_mode;
|
$this->season_mode = $season_mode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user