Closed (outdated)
Project:
Media Directories
Version:
8.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
9 Mar 2020 at 22:13 UTC
Updated:
2 Jul 2026 at 17:03 UTC
Jump to comment: Most recent
Comments
Comment #2
rang501 commentedYes, the default message is annoying. Are you thinking about toaster type popups? I was thinking to use something similar. I'm not sure which is the most popular library to use - I found two Drupal modules that are using Toastr and Toastify scripts. Toastr seems to be a better one to use but I'm not sure how well it is supported anymore (or it is just so stable, that it doesn't need active support). Bootstrap version would be nice but I think we can't use it separately. Or, just create something from scratch that works for this module only.
Comment #3
ytsurkI thought of using drupal's dialogs, like we are doing right now, fe. for the Keep selection question.
But I like your idea of a JS library. We could add also an existing module like https://www.drupal.org/project/toastify as optional dependency.
Comment #4
rang501 commentedI'm not sure if we can use module, my idea was to use some module that has a library we can use to prevent including multiple toaster libraries if some sites need it somewhere else too.
Modals could be used but due to issues with multiple modals, I would not use them, unless they are really needed.
Comment #5
ytsurkComment #6
rang501 commentedWhat if we try to catch all messages and try to render (same messages markup, so visually identical) them inside .browser--listing container? Then we could add some simple slideIn animation and close icon to these messages? Then we don't need any third party stuff or don't need to waste too much time on the UX part.
When catching these messages, we need to do this in two places - when loading file browser (to catch any messages that might appear on the page) and after ajax actions.
Comment #7
ytsurkShowing them in .browser-listing will not prevent the double scrollbar issue in modals ..
It should really be a goal to have our toolbar always fully visible!
Comment #8
rang501 commentedMarking as outdated.