From c8093b3f762da6a7632716fe031c6e7cda4666b8 Mon Sep 17 00:00:00 2001 From: JackBlackLight Date: Wed, 11 Sep 2024 15:32:36 -0400 Subject: [PATCH] use local: true to disable ajax form submission Co-authored-by: Eric O --- app/views/admin/deposits/_enable_deposits_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/deposits/_enable_deposits_form.html.erb b/app/views/admin/deposits/_enable_deposits_form.html.erb index 318ce80f..d6af5d1e 100644 --- a/app/views/admin/deposits/_enable_deposits_form.html.erb +++ b/app/views/admin/deposits/_enable_deposits_form.html.erb @@ -1,5 +1,5 @@
-<%= form_with url: admin_site_options_path, method: :patch do |form| %> +<%= form_with url: admin_site_options_path, method: :patch, local: true do |form| %> <% if deposits_enabled? %> <% action_label = "Disable Deposits" %> <% enable = false %>