Update Measurements#new form pathnames on actions

This commit is contained in:
2025-05-07 00:24:05 +02:00
parent 9dbcfddf98
commit ef3484dfdf
11 changed files with 61 additions and 37 deletions

View File

@@ -0,0 +1,7 @@
<%= turbo_stream.update(:new_readouts_form_legend) { @common_ancestor&.pathname } %>
<% @prev_quantities.each do |pq| %>
<%= turbo_stream.update dom_id(pq, nil, :pathname) do %>
<%= pq.relative_pathname(@common_ancestor) %>
<% end %>
<% end %>