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

show close button in non-pending states; resolves https://github.com/opf/openproject/pull/16364#pullrequestreview-2253960591

as-op69af0d8dc780
diff --git a/modules/job_status/app/components/job_status/dialog/body_component.html.erb b/modules/job_status/app/components/job_status/dialog/body_component.html.erb
index a04000d23de..68ab941344a 100644
--- a/modules/job_status/app/components/job_status/dialog/body_component.html.erb
+++ b/modules/job_status/app/components/job_status/dialog/body_component.html.erb
@@ -54,4 +54,13 @@
end
end
end %>
+ <% unless pending? %>
+ <%= flex_layout(justify_content: :flex_end) do |flex| %>
+ <% flex.with_column do %>
+ <%= render(Primer::Beta::Button.new(data: {
+ "close-dialog-id": JobStatus::Dialog::DialogComponent::MODAL_ID
+ })) { I18n.t(:button_close) } %>
+ <% end %>
+ <% end %>
+ <% end %>
<% end %>