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 meeting participant counter
Oliver Günther725e6d5e8686
diff --git a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erbindex fccb04fe69a..ea78608cd51 100644--- a/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb+++ b/modules/meeting/app/components/meetings/side_panel/participants_component.html.erb@@ -3,7 +3,7 @@render(Primer::OpenProject::SidePanel::Section.new) do |section|section.with_title { Meeting.human_attribute_name(:participants) }section.with_description { I18n.t('meeting.attachments.text') }- section.with_counter { @meeting.invited_or_attended_participants.count }+ section.with_counter(count: @meeting.invited_or_attended_participants.count)if @meeting.editable?section.with_action_icon(diff --git a/modules/meeting/spec/features/structured_meetings/structured_meeting_participant_spec.rb b/modules/meeting/spec/features/structured_meetings/structured_meeting_participant_spec.rbindex 02f8b7b2e69..f2a2816d897 100644--- a/modules/meeting/spec/features/structured_meetings/structured_meeting_participant_spec.rb+++ b/modules/meeting/spec/features/structured_meetings/structured_meeting_participant_spec.rb@@ -81,5 +81,7 @@ RSpec.describe "Structured meetings participants",check(id: "checkbox_invited_#{other_user.id}")click_on("Save")end++ expect(page).to have_css("#meetings-side-panel-participants-component", text: 2)endend