From 46cee3a19219846e7db9685fab296a68f7380ad5 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 26 Oct 2023 08:20:56 +0200 Subject: [PATCH] Fix Turbo Stream replace targeting the wrong element --- app/views/subscriptions/_create.html.haml | 2 +- app/views/subscriptions/_destroy.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/subscriptions/_create.html.haml b/app/views/subscriptions/_create.html.haml index d35861aa..64d289a9 100644 --- a/app/views/subscriptions/_create.html.haml +++ b/app/views/subscriptions/_create.html.haml @@ -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 = t("voc.subscribe") diff --git a/app/views/subscriptions/_destroy.html.haml b/app/views/subscriptions/_destroy.html.haml index 89f57ede..31e6d967 100644 --- a/app/views/subscriptions/_destroy.html.haml +++ b/app/views/subscriptions/_destroy.html.haml @@ -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 = t("voc.unsubscribe")