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
get rid of component wrapping the activity form
Klaus Zandersdb73a2a18145
diff --git a/modules/costs/app/components/time_entries/activity_form_component.rb b/modules/costs/app/components/time_entries/activity_form_component.rbdeleted file mode 100644index 591f94a86ed..00000000000--- a/modules/costs/app/components/time_entries/activity_form_component.rb+++ /dev/null@@ -1,18 +0,0 @@-module TimeEntries- class ActivityFormComponent < ApplicationComponent- include OpTurbo::Streamable-- attr_reader :form-- def initialize(form:)- super()- @form = form- end-- def call- component_wrapper do- render(TimeEntries::ActivityForm.new(form))- end- end- end-enddiff --git a/modules/costs/app/components/time_entries/time_entry_form_component.html.erb b/modules/costs/app/components/time_entries/time_entry_form_component.html.erbindex 1bc213d80bf..51f396438dc 100644--- a/modules/costs/app/components/time_entries/time_entry_form_component.html.erb+++ b/modules/costs/app/components/time_entries/time_entry_form_component.html.erb@@ -33,7 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.body.with_row(mb: 3) { render(TimeEntries::UserForm.new(form)) }body.with_row(mb: 3) { render(TimeEntries::DaysAndHoursForm.new(form)) }body.with_row(mb: 3) { render(TimeEntries::WorkPackageForm.new(form)) }- body.with_row(mb: 3, id: 'time-entries-activity-form') { render(TimeEntries::ActivityForm.new(form)) }+ body.with_row(mb: 3) { render(TimeEntries::ActivityForm.new(form)) }body.with_row(mb: 3) { render(TimeEntries::CommentsForm.new(form)) }body.with_row(mb: 3) { render(TimeEntries::CustomFieldsForm.new(form)) }end