notification & notes wip

This commit is contained in:
salam committed 2026-02-01 16:36:27 +01:00
1 parent 94a3c6c472
commit 155177045b
30 files changed
+426 -320

No files matched your search

+17 -1
View File
@@ -49,7 +49,23 @@ class BettypeToggle extends Component
public function toggleStar()
{
User::where('id', auth()->user()->id)->update(['stars' => DB::raw('!stars')]);
User::where('id', auth()->user()->id)->update(['filter_stars' => DB::raw('!filter_stars')]);
$this->dispatch('filterClearFilter');
$this->dispatch('refreshBettypeMenu');
}
public function toggleNote()
{
User::where('id', auth()->user()->id)->update(['filter_notes' => DB::raw('!filter_notes')]);
$this->dispatch('filterClearFilter');
$this->dispatch('refreshBettypeMenu');
}
public function toggleNotification()
{
User::where('id', auth()->user()->id)->update(['filter_notification' => DB::raw('!filter_notification')]);
$this->dispatch('filterClearFilter');
$this->dispatch('refreshBettypeMenu');