From 4b4deecf9ccd1c532a8ac0e6bb40f0ba6509b213 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 4 Sep 2022 14:52:11 +0200 Subject: [PATCH] Update theme deletion to work with Turbo --- app/views/settings/theme/edit.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/settings/theme/edit.haml b/app/views/settings/theme/edit.haml index 81f85882..a2aa406c 100644 --- a/app/views/settings/theme/edit.haml +++ b/app/views/settings/theme/edit.haml @@ -6,8 +6,8 @@ - if current_user.theme .pull-right - = button_to t(".delete"), settings_theme_path, data: { confirm: t("voc.confirm") }, tabindex: -1, method: :delete, class: "btn btn-danger" = bootstrap_form_for(current_user.theme || Theme.new, html: { id: "update" }, method: :patch) do |f| + = link_to t(".delete"), settings_theme_path, data: { turbo_confirm: t("voc.confirm"), turbo_method: :delete }, tabindex: -1, class: "btn btn-danger" .card .card-body %h2= t(".general.heading")