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
sort target declaractions
Ivan Kuchine413a2bd5ffa
diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.tsindex e742ebff058..8dc55a4666d 100644--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts@@ -32,21 +32,22 @@ import { Controller } from '@hotwired/stimulus';export default class CustomFieldsController extends Controller {static targets = [- 'dragContainer','format',+ 'dragContainer',++ 'allowNonOpenVersions',+ 'customOptionDefaults',+ 'customOptionRow',+ 'defaultBool',+ 'defaultLongText',+ 'defaultText',+ 'defaultValue','length',- 'regexp','multiSelect',- 'allowNonOpenVersions','possibleValues',- 'defaultValue',- 'defaultText',- 'defaultLongText',- 'defaultBool',- 'textOrientation',+ 'regexp','searchable',- 'customOptionRow',- 'customOptionDefaults',+ 'textOrientation',];declare readonly formatTarget:HTMLInputElement;@@ -55,19 +56,19 @@ export default class CustomFieldsController extends Controller {// Lots of the option fields are optionally, so we use the// array notation to loop through instead of a lot of if (has...Target) calls+ declare readonly allowNonOpenVersionsTargets:HTMLElement[];+ declare readonly customOptionDefaultsTargets:HTMLInputElement[];+ declare readonly customOptionRowTargets:HTMLTableRowElement[];+ declare readonly defaultBoolTargets:HTMLElement[];+ declare readonly defaultLongTextTargets:HTMLElement[];+ declare readonly defaultTextTargets:HTMLElement[];+ declare readonly defaultValueTargets:HTMLElement[];declare readonly lengthTargets:HTMLElement[];- declare readonly regexpTargets:HTMLElement[];declare readonly multiSelectTargets:HTMLElement[];- declare readonly allowNonOpenVersionsTargets:HTMLElement[];declare readonly possibleValuesTargets:HTMLElement[];- declare readonly defaultValueTargets:HTMLElement[];- declare readonly defaultTextTargets:HTMLElement[];- declare readonly defaultLongTextTargets:HTMLElement[];- declare readonly defaultBoolTargets:HTMLElement[];- declare readonly textOrientationTargets:HTMLElement[];+ declare readonly regexpTargets:HTMLElement[];declare readonly searchableTargets:HTMLInputElement[];- declare readonly customOptionRowTargets:HTMLTableRowElement[];- declare readonly customOptionDefaultsTargets:HTMLInputElement[];+ declare readonly textOrientationTargets:HTMLElement[];connect() {if (this.hasDragContainerTarget) {