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

rename moveUpRow to moveRowUp and moveDownRow to moveRowDown

Ivan Kuchin117780f25fae
diff --git a/app/views/custom_fields/_custom_options.html.erb b/app/views/custom_fields/_custom_options.html.erb
index d9a7a5688a4..2bdd2aad1e1 100644
--- a/app/views/custom_fields/_custom_options.html.erb
+++ b/app/views/custom_fields/_custom_options.html.erb
@@ -116,7 +116,7 @@ See COPYRIGHT and LICENSE files for more details.
rel="nofollow"
href="#"
class="move-up-custom-option"
- data-action="admin--custom-fields#moveUpRow"
+ data-action="admin--custom-fields#moveRowUp"
>
<%= op_icon('icon-context icon-arrow-up2 icon-small') %>
</a>
@@ -124,7 +124,7 @@ See COPYRIGHT and LICENSE files for more details.
title="<%= t(:label_sort_lower) %>"
rel="nofollow" href="#"
class="move-down-custom-option"
- data-action="admin--custom-fields#moveDownRow"
+ data-action="admin--custom-fields#moveRowDown"
>
<%= op_icon('icon-context icon-arrow-down2 icon-small') %>
</a>
diff --git a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
index f9f2d1f016d..1356755aaa3 100644
--- a/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
+++ b/frontend/src/stimulus/controllers/dynamic/admin/custom-fields.controller.ts
@@ -125,7 +125,7 @@ export default class CustomFieldsController extends Controller {
this.toggleFormat(event.target.value);
}
- moveUpRow(event:{ target:HTMLElement }) {
+ moveRowUp(event:{ target:HTMLElement }) {
const row = event.target.closest('tr') as HTMLTableRowElement;
const idx = this.customOptionRowTargets.indexOf(row);
if (idx > 0) {
@@ -135,7 +135,7 @@ export default class CustomFieldsController extends Controller {
return false;
}
- moveDownRow(event:{ target:HTMLElement }) {
+ moveRowDown(event:{ target:HTMLElement }) {
const row = event.target.closest('tr') as HTMLTableRowElement;
const idx = this.customOptionRowTargets.indexOf(row);
if (idx < this.customOptionRowTargets.length - 1) {