fixin.me/app/views/units/_form_close.html.erb
cryptogopher 759a0b31b7 Disable only form-opening link
Close other forms on new form open
2024-02-04 20:11:44 +01:00

4 lines
142 B
Plaintext

<%= @unit.persisted? ? turbo_stream.replace(@unit) : turbo_stream.remove(@unit) %>
<%= turbo_stream.enable id %>
<%= turbo_stream.focus id %>