Allow for the footer frames to be hidden on the notifications page

Otherwise you will have multiple notification dom elements with the same
id.
This commit is contained in:
David Heinemeier Hansson
2025-04-16 16:23:05 +02:00
parent 158b694d31
commit ac3307ee23
+6 -4
View File
@@ -46,10 +46,12 @@
<footer id="footer">
<%= yield :footer %>
<% if Current.user %>
<%= render "notifications/tray" %>
<%= render "my/pins/tray" %>
<%= turbo_frame_tag "terminal", src: terminal_path, data: { turbo_permanent: true } %>
<% if Current.user && !@hide_footer_frames %>
<div id="footer_frames" data-turbo-permanent="true">
<%= render "notifications/tray" %>
<%= render "my/pins/tray" %>
<%= turbo_frame_tag "terminal", src: terminal_path %>
</div>
<% end %>
</footer>