F
Filament3mo ago
Groli

How can you close notification from ActionGroup that is inside its actions?

As explained in the title... If I try to use ->close(), it will only close the action group popup, not the notification? Is it possible to the do? Thanks for any help in advance.
3 Replies
Groli
Groli3mo ago
Anyone able to help?
JChan
JChan3mo ago
It would be helpful if you posted code to recreate the issue you are talking about. Much easier to visualize the issue if we have some code that is easy to test.
Groli
Groli3mo ago
I have an ActionGroup like this:
// ... my notification
->actions([
ActionGroup::make([
Action::make("some-id")
->label(...)
->button()
->close()
->dispatch(...);
])
->label('Group label')
->color('gray')
->button(),
])
// ... my notification
->actions([
ActionGroup::make([
Action::make("some-id")
->label(...)
->button()
->close()
->dispatch(...);
])
->label('Group label')
->color('gray')
->button(),
])
As this code is located inside Notification inside its actions I would like to close the whole notification (as is possible from normal action outside ActionGroup to do). I understand that it's logical that it closes (if it's inside ActionGroup) the group itself. But I would like to close the whole notification from there somehow... That's my problem, I'm currently trying to get around.
Want results from more Discord servers?
Add your server