Skip to content

Commit 9ef2bf3

Browse files
committed
Update application_helper.rb
1 parent 58b1b94 commit 9ef2bf3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/helpers/application_helper.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,11 @@ def modal(title, opts = {})
252252
end
253253
end +
254254
content_tag(:div, class: opts[:body_class]) do
255-
yield if block_given?
255+
if block_given?
256+
yield
257+
elsif opts[:async]
258+
fa_icon(:spinner, class: 'fa-spin') + ' Loading...'
259+
end
256260
end +
257261
if opts[:footer]
258262
content_tag(:div, opts[:footer], class: 'modal-footer')

0 commit comments

Comments
 (0)