In some cases, 50+ messages can be received per page. I.e. when the VBO finishes, I need to show a list of messages informing about the processed items. The list of messages using Toastify cannot be displayed properly because some messages do not fit in the browser window and the user cannot read important messages that disappear.
The patch overwrites Drupal.theme.message
and lets to toastify messages added using ajax MessageCommand.
Mentioned Drupal core patch https://www.drupal.org/project/drupal/issues/3396099 🐛 The core/drupal.message library requires a status_messages render element Active must be applied.
Other changes in patch:
- configurable options to exclude toastify messages for admin pages and for path list.
- possibility to set unlimited duration (-1)
- configurable message text color