machour / yii2-notifications

A complete notifications module for your Yii 2 powered application
MIT License
90 stars 48 forks source link

Mark all as read / delete all #33

Closed pistej closed 7 years ago

pistej commented 7 years ago

It is possible mark all displayed notifications as read or delete all notification at once? One solution is: via javascript, similar function as markSeen

Why is notification row only hidden and not removed permanently?

drsdre commented 7 years ago

You can delete all seen/flashed notifications by using the console command ./yii notifications/notifications/clean

Individual notification are deleted in the front-end using the action delete. This is carried out when you click x on a notification in the listSelector list.

If want to delete all notifications from the frontend, a new actionDeleteAll should be created probably together with a link in the listSelector interface. Feel free to send a PR for this.