Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Description
Actually, when we want to show a notification, we call directly to com.vaadin.ui.Notification. Would be nice offer a wrap around it for users and other magnolia modules, something like:
public class Notifications { private final SimpleTranslator i18n; @Inject public Notifications(SimpleTranslator i18n) { this.i18n = i18n; } public void showError(String key) { Notification.show(i18n.translate(key), Notification.Type.ERROR_MESSAGE); } .... }
Checklists
Acceptance criteria