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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#66093] Project list: show error dialog
Tobias Dillmanna105cacec881
diff --git a/app/components/projects/row_component.rb b/app/components/projects/row_component.rbindex 76c26d6e928..c6b26ca50cd 100644--- a/app/components/projects/row_component.rb+++ b/app/components/projects/row_component.rb@@ -97,17 +97,11 @@ module Projectserrors = cf.calculated_value_errors.where(project:)if errors.any?- # TODO: move into a dedicated component?- render(Primer::OpenProject::FlexLayout.new(align_items: :center)) do |container|- container.with_column do- render Primer::Beta::Octicon.new(icon: :"alert-fill", color: :danger)- end- container.with_column(ml: 2) do- # FIXME: text content gets cut off if the column is not wide enough.- render Primer::Beta::Text.new(color: :danger) do- errors.map(&:error_message).join(" ")- end- end+ render(Primer::Alpha::Dialog.new(title: I18n.t("calculated_values.error_dialog.title"))) do |dialog|+ dialog.with_show_button(icon: "alert-fill",+ "aria-label": I18n.t("calculated_values.error_dialog.title"),+ scheme: :invisible)+ dialog.with_body { errors.map(&:error_message).join(" ") }endelsecustom_valuediff --git a/config/locales/en.yml b/config/locales/en.ymlindex 73043372a12..86657916ca7 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -361,6 +361,8 @@ en:no_results_content_text: Create a new custom fieldcalculated_values:+ error_dialog:+ title: "Error with calculated value"errors:unknown: "An unknown error occurred. Please review the formula for this calculated value."mathematical: "A mathematical error occurred during calculation."