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
Fix import of meetings controllers and make consistent
Oliver Günther051eae35b1ea
diff --git a/frontend/src/stimulus/controllers/add-meeting-params.controller.ts b/frontend/src/stimulus/controllers/dynamic/meetings/add-params.controller.tssimilarity index 94%rename from frontend/src/stimulus/controllers/add-meeting-params.controller.tsrename to frontend/src/stimulus/controllers/dynamic/meetings/add-params.controller.tsindex 6f72cc83fa2..c737a293a62 100644--- a/frontend/src/stimulus/controllers/add-meeting-params.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/meetings/add-params.controller.ts@@ -30,9 +30,9 @@import { ApplicationController } from 'stimulus-use';import { TurboRequestsService } from 'core-app/core/turbo/turbo-requests.service';-import { appendCollapsedState } from '../helpers/collapsible-helper';+import { appendCollapsedState } from '../../../helpers/collapsible-helper';-export default class AddMeetingParamsController extends ApplicationController {+export default class extends ApplicationController {private turboRequests:TurboRequestsService;static targets = ['container'];diff --git a/frontend/src/stimulus/controllers/dynamic/meetings-drag-and-drop.controller.ts b/frontend/src/stimulus/controllers/dynamic/meetings/drag-and-drop.controller.tssimilarity index 85%rename from frontend/src/stimulus/controllers/dynamic/meetings-drag-and-drop.controller.tsrename to frontend/src/stimulus/controllers/dynamic/meetings/drag-and-drop.controller.tsindex 61f663a96e8..ad1f4089973 100644--- a/frontend/src/stimulus/controllers/dynamic/meetings-drag-and-drop.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/meetings/drag-and-drop.controller.ts@@ -28,10 +28,10 @@* ++*/-import GenericDragAndDropController from './generic-drag-and-drop.controller';-import { appendCollapsedState } from '../../helpers/collapsible-helper';+import GenericDragAndDropController from '../generic-drag-and-drop.controller';+import { appendCollapsedState } from '../../../helpers/collapsible-helper';-export default class MeetingsDragAndDropController extends GenericDragAndDropController {+export default class extends GenericDragAndDropController {protected override buildData(el:Element, target:Element):FormData {const data = super.buildData(el, target);diff --git a/frontend/src/stimulus/controllers/dynamic/meetings/form.controller.ts b/frontend/src/stimulus/controllers/dynamic/meetings/form.controller.tsindex 345d6ca0424..a98f0f79074 100644--- a/frontend/src/stimulus/controllers/dynamic/meetings/form.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/meetings/form.controller.ts@@ -32,7 +32,7 @@ import { ApplicationController } from 'stimulus-use';import { TurboRequestsService } from 'core-app/core/turbo/turbo-requests.service';import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';-export default class OpMeetingsFormController extends ApplicationController {+export default class extends ApplicationController {private turboRequests:TurboRequestsService;private pathHelper:PathHelperService;diff --git a/frontend/src/stimulus/controllers/dynamic/meeting-section-form.controller.ts b/frontend/src/stimulus/controllers/dynamic/meetings/section-form.controller.tssimilarity index 100%rename from frontend/src/stimulus/controllers/dynamic/meeting-section-form.controller.tsrename to frontend/src/stimulus/controllers/dynamic/meetings/section-form.controller.tsdiff --git a/frontend/src/stimulus/setup.ts b/frontend/src/stimulus/setup.tsindex 608277a307b..64d795f5d6e 100644--- a/frontend/src/stimulus/setup.ts+++ b/frontend/src/stimulus/setup.ts@@ -20,7 +20,6 @@ import PatternInputController from './controllers/pattern-input.controller';import HoverCardTriggerController from './controllers/hover-card-trigger.controller';import ScrollIntoViewController from './controllers/scroll-into-view.controller';import CkeditorFocusController from './controllers/ckeditor-focus.controller';-import AddMeetingParamsController from './controllers/add-meeting-params.controller';import HighlightWhenValueSelectedController from './controllers/highlight-when-value-selected.controller';import AutoSubmit from '@stimulus-components/auto-submit';@@ -59,7 +58,6 @@ instance.register('keep-scroll-position', KeepScrollPositionController);instance.register('pattern-input', PatternInputController);instance.register('scroll-into-view', ScrollIntoViewController);instance.register('ckeditor-focus', CkeditorFocusController);-instance.register('add-meeting-params', AddMeetingParamsController);instance.register('highlight-when-value-selected', HighlightWhenValueSelectedController);instance.register('auto-submit', AutoSubmit);diff --git a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rbindex 2eb799c28b9..63a28a98370 100644--- a/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb+++ b/modules/meeting/app/components/meeting_agenda_items/item_component/show_component.rb@@ -202,7 +202,7 @@ module MeetingAgendaItemsmenu.with_item(label: I18n.t(:label_agenda_item_move_to_backlog),tag: :button,content_arguments: { data: {- action: "click->add-meeting-params#interceptMoveTo",+ action: "click->meetings--add-params#interceptMoveTo",href: drop_meeting_agenda_item_path(@meeting_agenda_item.meeting, @meeting_agenda_item, type: :to_backlog)} }) do |item|item.with_leading_visual_icon(icon: "discussion-outdated")@@ -213,7 +213,7 @@ module MeetingAgendaItemsmenu.with_item(label: I18n.t(:label_agenda_item_move_to_current_meeting),tag: :button,content_arguments: { data: {- action: "click->add-meeting-params#interceptMoveTo",+ action: "click->meetings--add-params#interceptMoveTo",href: drop_meeting_agenda_item_path(@meeting_agenda_item.meeting, @meeting_agenda_item, type: :to_current)} }) do |item|item.with_leading_visual_icon(icon: "cross-reference")diff --git a/modules/meeting/app/components/meeting_sections/backlogs/container_component.rb b/modules/meeting/app/components/meeting_sections/backlogs/container_component.rbindex 3f3c156c831..254942ef053 100644--- a/modules/meeting/app/components/meeting_sections/backlogs/container_component.rb+++ b/modules/meeting/app/components/meeting_sections/backlogs/container_component.rb@@ -50,7 +50,7 @@ module MeetingSectionsdef wrapper_data_attributes{- "add-meeting-params-target": "container",+ "meetings--add-params-target": "container",meeting: @meeting.id}enddiff --git a/modules/meeting/app/components/meeting_sections/header_component.html.erb b/modules/meeting/app/components/meeting_sections/header_component.html.erbindex 6117e15ff16..e8676d060ac 100644--- a/modules/meeting/app/components/meeting_sections/header_component.html.erb+++ b/modules/meeting/app/components/meeting_sections/header_component.html.erb@@ -46,9 +46,9 @@method: :put,url: meeting_section_path(@meeting_section.meeting, @meeting_section),data: {- controller: "meeting-section-form scroll-into-view",+ controller: "meetings--section-form scroll-into-view","application-target": "dynamic",- "meeting-section-form-cancel-url-value": cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section)+ "meetings--section-form-cancel-url-value": cancel_edit_meeting_section_path(@meeting_section.meeting, @meeting_section)}) do |f|flex_layout do |editable_title_form|diff --git a/modules/meeting/app/components/meetings/show_component.rb b/modules/meeting/app/components/meetings/show_component.rbindex ef09de85cbd..840a4639975 100644--- a/modules/meeting/app/components/meetings/show_component.rb+++ b/modules/meeting/app/components/meetings/show_component.rb@@ -43,7 +43,7 @@ module Meetingsdef wrapper_data_attributes{- controller: "meetings-drag-and-drop add-meeting-params",+ controller: "meetings--drag-and-drop meetings--add-params","application-target": "dynamic"}enddiff --git a/modules/meeting/app/forms/meeting_section/title.rb b/modules/meeting/app/forms/meeting_section/title.rbindex 97eb0216a42..77bc7e05f87 100644--- a/modules/meeting/app/forms/meeting_section/title.rb+++ b/modules/meeting/app/forms/meeting_section/title.rb@@ -38,7 +38,7 @@ class MeetingSection::Title < ApplicationFormautofocus: true,bg: :default,data: {- action: "keydown.esc->meeting-section-form#cancel"+ action: "keydown.esc->meetings--section-form#cancel"})end