Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Replace opToast with Primer::Banner

Henriette Dargedda5d94f08ef
diff --git a/app/views/admin/settings/progress_tracking/show.html.erb b/app/views/admin/settings/progress_tracking/show.html.erb
index ff04f5828af..653120e5aff 100644
--- a/app/views/admin/settings/progress_tracking/show.html.erb
+++ b/app/views/admin/settings/progress_tracking/show.html.erb
@@ -55,14 +55,13 @@ primer_form_with(
}
)
form.html_content do
- tag.div(
- class: "op-toast -warning -with-bottom-spacing",
- hidden: true,
- data: { admin__progress_tracking_target: "warningToast" }
+ render(
+ Primer::Alpha::Banner.new(
+ scheme: :warning,
+ data: { admin__progress_tracking_target: "warningToast" }
+ )
) do
- tag.div(class: "op-toast--content") do
- tag.p(data: { admin__progress_tracking_target: "warningText" })
- end
+ render(Primer::Beta::Text.new(data: { admin__progress_tracking_target: "warningText" }))
end
end
form.radio_button_group(