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[Op#50737]: configuration check label

Kabiru Mwenja1e6d388a43ca
diff --git a/modules/storages/app/components/storages/admin/storage_view_information.rb b/modules/storages/app/components/storages/admin/storage_view_information.rb
index fefbd2365c9..f00175b2b48 100644
--- a/modules/storages/app/components/storages/admin/storage_view_information.rb
+++ b/modules/storages/app/components/storages/admin/storage_view_information.rb
@@ -23,10 +23,10 @@ module Storages::Admin
end
def configuration_check_label_for(*configs)
- if storage.configuration_checks.slice(configs.map(&:to_sym)).values.all?
- status_label(I18n.t('storages.label_completed'), scheme: :success, test_selector: "label-#{config}-status")
+ if storage.configuration_checks.slice(*configs.map(&:to_sym)).values.all?
+ status_label(I18n.t('storages.label_completed'), scheme: :success, test_selector: "label-completed-status")
else
- status_label(I18n.t('storages.label_incomplete'), scheme: :attention, test_selector: "label-#{config}-status")
+ status_label(I18n.t('storages.label_incomplete'), scheme: :attention, test_selector: "label-incomplete-status")
end
end