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
rename toggleVisibility to setVisibility, make private and swap argument order
Ivan Kuchinfba113c713a3
diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.tsindex 1356755aaa3..481f50e11f5 100644--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts@@ -82,7 +82,7 @@ export default class CustomFieldsController extends Controller {}activate(elements:HTMLElement[], active = true) {- this.toggleVisibility(!active, elements);+ this.setVisibility(elements, !active);elements.forEach((element) => {element.querySelectorAll<HTMLInputElement>('input,textarea')@@ -94,7 +94,7 @@ export default class CustomFieldsController extends Controller {});}- toggleVisibility(hidden:boolean, elements:HTMLElement[]) {+ private setVisibility(elements:HTMLElement[], hidden:boolean) {elements.forEach((element) => {const wrapper = element.closest<HTMLElement>('.form--grouping') || element.closest<HTMLElement>('.form--field');@@ -107,11 +107,11 @@ export default class CustomFieldsController extends Controller {}hide(...elements:HTMLElement[]) {- this.toggleVisibility(true, elements);+ this.setVisibility(elements, true);}show(...elements:HTMLElement[]) {- this.toggleVisibility(false, elements);+ this.setVisibility(elements, false);}unsearchable() {