Notification
I am looking to send notifications on a stand alone table (not part of the admin panel). It is a bulk action on a relationship. The action is being run under a DB:: transaction. If the transaction is successful I want to show a notification for success and otherwise I want to show a notification for failure.
I have tried to set
But this shows the notification as soon as the table is loaded. I am not sure how to fix this. Thanks in advance for any possible way to fix it.
5 Replies
Instead of using this, use
failureNotificationTitle
and successNotificationTitle
Yes - tried those also. Then no notifications are being shown.
successNotificationTitle etc are only for our prebuilt actions to enable easier customization
for anything custom, you can simply send a notification from within the action() function
I guess what you are saying is that once the process part returns whether it is successful or not, I copy the part inside
successfulNotification and failureNotification, inside the action call. I will try it out. Thanks for the tip.
yeah you have total control over what a "success" or "failure" is