From 535677f30cc4aa111a779255de5b82a263ff55cf Mon Sep 17 00:00:00 2001 From: Mir Bhatia Date: Fri, 27 Mar 2026 09:33:09 +0100 Subject: [PATCH] Use turbo_temporary to prevent caching and flickering on load --- .../workflows/confirmation_dialog_component.html.erb | 3 ++- app/views/workflows/edit.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/components/workflows/confirmation_dialog_component.html.erb b/app/components/workflows/confirmation_dialog_component.html.erb index b3529a072dd..d02fe0482e8 100644 --- a/app/components/workflows/confirmation_dialog_component.html.erb +++ b/app/components/workflows/confirmation_dialog_component.html.erb @@ -31,7 +31,8 @@ See COPYRIGHT and LICENSE files for more details. render( Primer::OpenProject::FeedbackDialog.new( id: DIALOG_ID, - title: t("admin.workflows.leave_confirmation.title") + title: t("admin.workflows.leave_confirmation.title"), + data: { turbo_temporary: true } ) ) do |dialog| dialog.with_feedback_message(icon_arguments: { icon: :none }) do |message| diff --git a/app/views/workflows/edit.html.erb b/app/views/workflows/edit.html.erb index 8a7f0c19312..7ccb185687d 100644 --- a/app/views/workflows/edit.html.erb +++ b/app/views/workflows/edit.html.erb @@ -41,7 +41,7 @@ See COPYRIGHT and LICENSE files for more details. { action: :update }, id: "workflow_form", method: :patch, - data: { turbo_frame: "_top", controller: "admin--workflow-checkbox-state", has_status_changes: ("true" if @has_status_changes) } + data: { turbo_frame: "_top", controller: "admin--workflow-checkbox-state", has_status_changes: ("true" if @has_status_changes), turbo_temporary: true } ) do %> <%= hidden_field_tag "type_id", @type.id %> <%= hidden_field_tag "role_id", @role.id %>