Use turbo_temporary to prevent caching and flickering on load

This commit is contained in:
Mir Bhatia
2026-03-27 09:33:09 +01:00
parent d328a2f2c7
commit 535677f30c
2 changed files with 3 additions and 2 deletions
@@ -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|
+1 -1
View File
@@ -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 %>