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

[#55382] show connection validation only for one drive

Eric Schubertfbc5d269af72
diff --git a/modules/storages/app/components/storages/admin/sidebar_component.html.erb b/modules/storages/app/components/storages/admin/sidebar_component.html.erb
index 720b0e4c00c..b4f92cfad5f 100644
--- a/modules/storages/app/components/storages/admin/sidebar_component.html.erb
+++ b/modules/storages/app/components/storages/admin/sidebar_component.html.erb
@@ -1,7 +1,10 @@
<%=
component_wrapper do
render(Primer::OpenProject::BorderGrid.new) do |border_grid|
- border_grid.with_row { render(Storages::Admin::Sidebar::ConnectionValidationComponent.new(storage: @storage)) }
+ if @storage.provider_type_one_drive?
+ border_grid.with_row { render(Storages::Admin::Sidebar::ConnectionValidationComponent.new(storage: @storage)) }
+ end
+
border_grid.with_row { render(Storages::Admin::Sidebar::HealthStatusComponent.new(storage: @storage)) }
border_grid.with_row { render(Storages::Admin::Sidebar::HealthNotificationsComponent.new(storage: @storage)) }
end