Actually, to display a notification, we append a NotificationView to the element with the class 'notifications'.
I find this method kind of restrictive.
An alert manager with a queue persisted in window.sessionStorage could be interresting.
This AlertManager would be initialized at start in context and then used everywhere to add alerts.
It could be flushed manually when necessary and automatically flushed at each start to display alerts after a redirect.
The whole process of rendering and displaying alerts would be handled by him.
It would provide a cleaner way to make alerts.
Actually, to display a notification, we append a NotificationView to the element with the class 'notifications'. I find this method kind of restrictive. An alert manager with a queue persisted in window.sessionStorage could be interresting. This AlertManager would be initialized at start in context and then used everywhere to add alerts. It could be flushed manually when necessary and automatically flushed at each start to display alerts after a redirect. The whole process of rendering and displaying alerts would be handled by him. It would provide a cleaner way to make alerts.