notification & notes wip
This commit is contained in:
1 parent
94a3c6c472
commit
155177045b
30 files changed
+426
-320
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user