From 0cecb3b70e8337fe5ad2348c31ada7335f3f144e Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 29 Sep 2023 12:09:53 +0200 Subject: [PATCH] Disable Turbo on the leave overlay If someone leaves the alchemy admin either via logout or visiting the frontend, we must not use Turbo in order the reload the assets. (cherry picked from commit 277641c6f9849732a30cd8916e68bf56a4f7c292) --- app/views/alchemy/admin/leave.html.erb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/alchemy/admin/leave.html.erb b/app/views/alchemy/admin/leave.html.erb index 78044f025c..4befe990f7 100644 --- a/app/views/alchemy/admin/leave.html.erb +++ b/app/views/alchemy/admin/leave.html.erb @@ -1,11 +1,13 @@ <%= render_message do %> <%= Alchemy.t("You are about to leave Alchemy") %> <% end %> -

- - <%= link_to Alchemy.t('stay logged in'), alchemy.root_path, class: 'button secondary' %> -

-<%= form_tag Alchemy.logout_path, method: Alchemy.logout_method, class: 'buttons' do %> - - <%= button_tag Alchemy.t(:logout), autofocus: true %> -<% end %> +
+

+ + <%= link_to Alchemy.t('stay logged in'), alchemy.root_path, class: 'button secondary' %> +

+ <%= form_tag Alchemy.logout_path, method: Alchemy.logout_method, class: 'buttons' do %> + + <%= button_tag Alchemy.t(:logout), autofocus: true %> + <% end %> +