mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Add persistent notification with dismiss and action button (#611)
* Update notification partial * Update locals args * Lint * Move content to body in notification helper * Avoid dynamic Tailwind class * Styling * Add notification to localization file * Lint * Normalize locales * Auto dismiss by default
This commit is contained in:
parent
5516b03b6e
commit
a22c7a0e9c
7 changed files with 42 additions and 21 deletions
|
@ -17,7 +17,7 @@ module ApplicationHelper
|
|||
content = tag.p(text)
|
||||
content = capture &block if block_given?
|
||||
|
||||
render partial: "shared/notification", locals: { type: options[:type], content: content }
|
||||
render partial: "shared/notification", locals: { type: options[:type], content: { body: content } }
|
||||
end
|
||||
|
||||
# Wrap view with <%= modal do %> ... <% end %> to have it open in a modal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue