Skip to content

Commit

Permalink
Merge pull request #16508 from opf/fix/meeting-particpant-count
Browse files Browse the repository at this point in the history
Fix meeting participant counter
  • Loading branch information
oliverguenther authored Aug 22, 2024
2 parents 2ebedda + 68c7780 commit bc1e0b2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
render(Primer::OpenProject::SidePanel::Section.new) do |section|
section.with_title { t(:label_attachment_plural) }
section.with_description { I18n.t('meeting.attachments.text') }
section.with_counter { @meeting.attachments.count }
section.with_counter(count: @meeting.attachments.count)

section.with_footer_button(
id: "meetings-add-attachments",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,7 @@
check(id: "checkbox_invited_#{other_user.id}")
click_on("Save")
end

expect(page).to have_css("#meetings-side-panel-participants-component", text: 2)
end
end

0 comments on commit bc1e0b2

Please sign in to comment.