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

Improve naming for internal comment stimulus controller outlet selector

Kabiru Mwenja08ab20d9666a
diff --git a/app/components/concerns/work_packages/activities_tab/stimulus_controllers.rb b/app/components/concerns/work_packages/activities_tab/stimulus_controllers.rb
index f2d2c119c46..6075cb2ef6e 100644
--- a/app/components/concerns/work_packages/activities_tab/stimulus_controllers.rb
+++ b/app/components/concerns/work_packages/activities_tab/stimulus_controllers.rb
@@ -39,7 +39,7 @@ module WorkPackages
def index_stimulus_controller_outlet_selector = "##{WorkPackages::ActivitiesTab::IndexComponent.index_content_wrapper_key}"
- def add_comment_selector
+ def internal_comment_stimulus_controller_outlet_selector
"##{WorkPackages::ActivitiesTab::IndexComponent.add_comment_wrapper_key}"
end
end
diff --git a/app/components/work_packages/activities_tab/journals/item_component.rb b/app/components/work_packages/activities_tab/journals/item_component.rb
index 02ee69cf253..2b6e34789b7 100644
--- a/app/components/work_packages/activities_tab/journals/item_component.rb
+++ b/app/components/work_packages/activities_tab/journals/item_component.rb
@@ -166,7 +166,7 @@ module WorkPackages
quote_comments_stimulus_controller("-is-internal-param") => journal.internal?,
quote_comments_stimulus_controller("-text-wrote-param") => I18n.t(:text_wrote),
quote_comments_stimulus_controller("-#{index_stimulus_controller}-outlet") => index_stimulus_controller_outlet_selector, # rubocop:disable Layout/LineLength
- quote_comments_stimulus_controller("-#{internal_comment_stimulus_controller}-outlet") => add_comment_selector,
+ quote_comments_stimulus_controller("-#{internal_comment_stimulus_controller}-outlet") => internal_comment_stimulus_controller_outlet_selector, # rubocop:disable Layout/LineLength
test_selector: "op-wp-journal-#{journal.id}-quote"
}
end