Skip to content

Commit

Permalink
Merge pull request #220 from unikounio/feature/flash-message-timeout-…
Browse files Browse the repository at this point in the history
…notice-only

フラッシュメッセージがalert typeのときはタイムアウトなしにした
  • Loading branch information
unikounio authored Jan 7, 2025
2 parents eb92a06 + 1040bf2 commit 127401b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/shared/_flash.html.slim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- flash.each do |flash_type, message|
div(
data-controller='alert'
data-alert-dismiss-after-value='5000'
data-alert-dismiss-after-value=('5000' if notice_type?(flash_type))
class="alert flex items-start p-4 mb-4 rounded-lg shadow-lg \
max-w-fit mx-auto #{tailwind_classes_for(flash_type)}"
role='alert'
Expand Down

0 comments on commit 127401b

Please sign in to comment.