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

Fix storage keys

Oliver Günthera1fa97ce4f41
diff --git a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb
index 9fd7cc5bbbe..3015a9d2a8d 100644
--- a/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb
+++ b/modules/storages/app/components/storages/admin/forms/oauth_client_form_component.html.erb
@@ -9,7 +9,9 @@
) do |form|
flex_layout do |oauth_client_row|
oauth_client_row.with_row(mb: 3) do
- render(Primer::Beta::Text.new(font_weight: :bold)) { I18n.t("storages.file_storage_view.#{storage}_oauth") }
+ render(Primer::Beta::Text.new(font_weight: :bold)) do
+ I18n.t("storages.file_storage_view.#{storage}_oauth", default: t("storages.file_storage_view.storage_oauth"))
+ end
end
oauth_client_row.with_row(mb: 3) do
diff --git a/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb b/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
index a68022e3f11..f09c51e2fb7 100644
--- a/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
+++ b/modules/storages/app/components/storages/admin/oauth_client_info_component.html.erb
@@ -5,7 +5,7 @@
concat(
render(
Primer::Beta::Text.new(font_weight: :bold, mr: 1, test_selector: "storage-oauth-client-label")
- ) { I18n.t("storages.file_storage_view.#{storage}_oauth") }
+ ) { I18n.t("storages.file_storage_view.#{storage}_oauth", default: t("storages.file_storage_view.storage_oauth")) }
)
concat(configuration_check_label_for(:storage_oauth_client_configured))
end