Action link in custom component

Hey community!

I am looking for a solution to add an action link to a custom component. I have a list of notifications that includes both read and unread notifications. I have created an action link called ‘Mark all as read’ which is supposed to mark all unread notifications as read, but it is not working as expected.

I want to create a custom component action link that, when clicked by a customer, will mark all unread notifications as read. How can I achieve this?

The action link is set to update the connected records?

Can you show what the console is showing?