Fix Turbo Stream replace targeting the wrong element

This commit is contained in:
Andreas Nedbal 2023-10-26 08:20:56 +02:00
parent 6e6cf5358b
commit 46cee3a192
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
= button_to subscriptions_path(answer: answer.id), class: "dropdown-item", id: "subscription-#{answer.id}" do = button_to subscriptions_path(answer: answer.id), class: "dropdown-item", form: { id: "subscription-#{answer.id}" } do
%i.fa.fa-fw.fa-bell %i.fa.fa-fw.fa-bell
= t("voc.subscribe") = t("voc.subscribe")

View file

@ -1,3 +1,3 @@
= button_to subscriptions_path(answer: answer.id), method: :delete, class: "dropdown-item", id: "subscription-#{answer.id}" do = button_to subscriptions_path(answer: answer.id), method: :delete, class: "dropdown-item", form: { id: "subscription-#{answer.id}" } do
%i.fa.fa-fw.fa-bell-slash %i.fa.fa-fw.fa-bell-slash
= t("voc.unsubscribe") = t("voc.unsubscribe")