mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Use turbo_temporary to prevent caching and flickering on load
This commit is contained in:
@@ -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|
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user