wip
This commit is contained in:
1 parent
51a195e657
commit
ff43f231f0
3 files changed
+34
-26
No files matched your search
@@ -37,10 +37,17 @@ class ListEvents extends ListRecords
|
||||
$this->removeTableFilters();
|
||||
}
|
||||
|
||||
// public function updateStar(): void
|
||||
// {
|
||||
// $this->tableFilters['events']['filter_stars'] = auth()->user()->filter_stars;
|
||||
// }
|
||||
public function updateStar(): void
|
||||
{
|
||||
// $filters = $this->table->getFilters();
|
||||
$filters = $this->getTable()->getFilters();
|
||||
|
||||
dd($filters['filter_stars']->getState());
|
||||
|
||||
$filter_stars = $filters['filter_stars']->getState();
|
||||
|
||||
$this->tableFilters['events']['filter_stars'] = ! $filter_stars;
|
||||
}
|
||||
|
||||
// public function updateNote(): void
|
||||
// {
|
||||
|
||||
@@ -16,6 +16,12 @@ class BettypeToggle extends Component
|
||||
'refreshBettypeMenu' => '$refresh',
|
||||
];
|
||||
|
||||
protected $filter_star = false;
|
||||
|
||||
protected $filter_note = false;
|
||||
|
||||
protected $filter_notify = false;
|
||||
|
||||
public function boot()
|
||||
{
|
||||
$this->bettype_toggles = [];
|
||||
@@ -46,23 +52,23 @@ class BettypeToggle extends Component
|
||||
$this->dispatch('refreshBettypeMenu');
|
||||
}
|
||||
|
||||
// public function toggleStar()
|
||||
// {
|
||||
// User::where('id', auth()->user()->id)->update(['filter_stars' => DB::raw('!filter_stars')]);
|
||||
// $this->dispatch('filterStarFilter');
|
||||
// }
|
||||
public function toggleStar()
|
||||
{
|
||||
$this->filter_star = ! $this->filter_star;
|
||||
$this->dispatch('filterStarFilter', ['filter', $this->filter_star]);
|
||||
}
|
||||
|
||||
// public function toggleNote()
|
||||
// {
|
||||
// User::where('id', auth()->user()->id)->update(['filter_notes' => DB::raw('!filter_notes')]);
|
||||
// $this->dispatch('filterNotificationFilter');
|
||||
// }
|
||||
public function toggleNote()
|
||||
{
|
||||
User::where('id', auth()->user()->id)->update(['filter_notes' => DB::raw('!filter_notes')]);
|
||||
$this->dispatch('filterNotificationFilter');
|
||||
}
|
||||
|
||||
// public function toggleNotification()
|
||||
// {
|
||||
// User::where('id', auth()->user()->id)->update(['filter_notification' => DB::raw('!filter_notification')]);
|
||||
// $this->dispatch('filterStarFilter');
|
||||
// }
|
||||
public function toggleNotification()
|
||||
{
|
||||
User::where('id', auth()->user()->id)->update(['filter_notification' => DB::raw('!filter_notification')]);
|
||||
$this->dispatch('filterStarFilter');
|
||||
}
|
||||
|
||||
public function toggleShowPartner()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user