Skip to content

Commit

Permalink
Notification mark read and mark real all feature issue solved.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed Dec 20, 2023
1 parent 61b1757 commit 250abe0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions app/Http/Livewire/Menu/Notifications.php
Expand Up @@ -49,10 +49,7 @@ public function markRead($type, $notification_id, $message = true)

$type = isset($data['file_name']) ?: trans('general.export');

$this->dispatchBrowserEvent('mark-read', [
'type' => 'notification',
'message' => trans('notifications.messages.mark_read', ['type' => $type]),
]);
$this->dispatch('mark-read', type: 'notification', message: trans('notifications.messages.mark_read', ['type' => $type]));
}

public function markReadAll()
Expand All @@ -63,10 +60,7 @@ public function markReadAll()
$this->markRead($notification->type, $notification->id, false);
}

$this->dispatchBrowserEvent('mark-read-all', [
'type' => 'notification',
'message' => trans('notifications.messages.mark_read_all', ['type' => trans('general.export')]),
]);
$this->dispatch('mark-read-all', type: 'notification', message: trans('notifications.messages.mark_read_all', ['type' => trans('general.export')]));
}

public function markUpdateRead($notification_id)
Expand Down

0 comments on commit 250abe0

Please sign in to comment.