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

Use hidden by filter class on the batch actions too

Dombi Attila485b6e0cd444
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.sass
index c91546101fe..9380cd6b387 100644
--- a/app/components/projects/settings/project_custom_field_sections/index_component.sass
+++ b/app/components/projects/settings/project_custom_field_sections/index_component.sass
@@ -1,3 +1,3 @@
-.Box-row
- &.hidden-by-filter
- display: none
\ No newline at end of file
+.Box
+ .hidden-by-filter
+ display: none
diff --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.ts
index 54a5a520bf1..2cf7982df6b 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
@@ -77,19 +77,19 @@ export default class ProjectCustomFieldsMappingFilterController extends Controll
this.showBulkActionContainers();
this.searchItemTargets.forEach((item) => {
- (item as HTMLElement).style.display = 'block';
+ (item as HTMLElement).classList.remove('hidden-by-filter');
});
}
hideBulkActionContainers() {
this.bulkActionContainerTargets.forEach((item) => {
- (item as HTMLElement).style.display = 'none';
+ (item as HTMLElement).classList.add('hidden-by-filter');
});
}
showBulkActionContainers() {
this.bulkActionContainerTargets.forEach((item) => {
- (item as HTMLElement).style.display = 'block';
+ (item as HTMLElement).classList.remove('hidden-by-filter');
});
}
}