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[#48620] Use correct labels

Kabiru Mwenja06c1376ea658
diff --git a/modules/storages/app/views/storages/admin/storages/show.html.erb b/modules/storages/app/views/storages/admin/storages/show.html.erb
index 9649e093dae..e87c62a137c 100644
--- a/modules/storages/app/views/storages/admin/storages/show.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/show.html.erb
@@ -88,8 +88,10 @@ See COPYRIGHT and LICENSE files for more details.
<% if @object.oauth_client %>
<% component.with_attributes_key_value([
- { key: t(:'storages.label_oauth_client_id'), value: @object.oauth_client.client_id },
- { key: t(:'storages.label_oauth_client_secret'), value: short_secret(@object.oauth_client.client_secret) },
+ { key: "#{t("storages.provider_types.#{@object.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_CLIENT_ID}",
+ value: @object.oauth_client.client_id },
+ { key: "#{t("storages.provider_types.#{@object.short_provider_type}.name")} #{Storages::Admin::LABEL_OAUTH_CLIENT_SECRET}",
+ value: short_secret(@object.oauth_client.client_secret) },
]) %>
<% else %>
<% t(:'storages.oauth_client_details_missing') %>