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
Adjusted filter approach as suggested by @dombesz
Jonas Jabaria48248ba37ef
diff --git a/app/components/_index.sass b/app/components/_index.sassindex 1c262068b87..28d1d6ec9cb 100644--- a/app/components/_index.sass+++ b/app/components/_index.sass@@ -2,3 +2,4 @@@import "work_packages/share/invite_user_form_component"@import "open_project/common/attribute_component"@import "filters_component"+@import "projects/settings/project_custom_field_sections/index_component"diff --git a/app/components/projects/settings/project_custom_field_sections/index_component.sass b/app/components/projects/settings/project_custom_field_sections/index_component.sassnew file mode 100644index 00000000000..c91546101fe--- /dev/null+++ b/app/components/projects/settings/project_custom_field_sections/index_component.sass@@ -0,0 +1,3 @@+.Box-row+ &.hidden-by-filter+ display: none\ No newline at end of filediff --git a/frontend/src/stimulus/controllers/dynamic/projects/settings/project-custom-fields-mapping-filter.controller.ts b/frontend/src/stimulus/controllers/dynamic/projects/settings/project-custom-fields-mapping-filter.controller.tsindex 2f6fbc28328..54a5a520bf1 100644--- a/frontend/src/stimulus/controllers/dynamic/projects/settings/project-custom-fields-mapping-filter.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/projects/settings/project-custom-fields-mapping-filter.controller.ts@@ -66,9 +66,9 @@ export default class ProjectCustomFieldsMappingFilterController extends Controllconst text = item.textContent?.toLowerCase();if (text?.includes(query)) {- (item as HTMLElement).style.display = 'block';+ (item as HTMLElement).classList.remove('hidden-by-filter');} else {- (item as HTMLElement).style.display = 'none';+ (item as HTMLElement).classList.add('hidden-by-filter');}});}