Replace patched #dom_id with #dom_target

This commit is contained in:
2026-10-17 04:57:26 +02:00
parent f1578fad75
commit 2c845f3528
14 changed files with 45 additions and 60 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
<div class="rightside-area buttongrid">
<% if current_user.at_least(:active) %>
<%= image_link_to t('.new_unit'), 'plus-outline', new_unit_path,
id: dom_id(Unit, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %>
id: :new_unit_link, onclick: 'this.blur();', data: {turbo_stream: true} %>
<% end %>
<%= image_link_to t('.import_units'), 'download-outline', default_units_path,
class: 'tools-area' %>