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

Explicitly hide footer in upcoming footer

Oliver Günther03202130666b
diff --git a/modules/meeting/app/components/recurring_meetings/table_component.rb b/modules/meeting/app/components/recurring_meetings/table_component.rb
index 4f2fa9dfb9c..cbd808c4bac 100644
--- a/modules/meeting/app/components/recurring_meetings/table_component.rb
+++ b/modules/meeting/app/components/recurring_meetings/table_component.rb
@@ -35,6 +35,7 @@ module RecurringMeetings
:count,
:direction,
:max_count,
+ :hide_footer,
:blankslate_title,
:blankslate_desc
@@ -45,6 +46,7 @@ module RecurringMeetings
end
def has_footer?
+ return false if options[:hide_footer]
return true if options[:max_count].nil?
options[:max_count] - count > 0
diff --git a/modules/meeting/app/views/recurring_meetings/_show_upcoming.html.erb b/modules/meeting/app/views/recurring_meetings/_show_upcoming.html.erb
index e3142af24c7..48ac10a4a32 100644
--- a/modules/meeting/app/views/recurring_meetings/_show_upcoming.html.erb
+++ b/modules/meeting/app/views/recurring_meetings/_show_upcoming.html.erb
@@ -50,7 +50,7 @@ See COPYRIGHT and LICENSE files for more details.
current_project: @project,
count: @count,
direction: @direction,
- max_count: @max_count,
+ hide_footer: true,
test_selector: "agenda-opened-table",
blankslate_title: I18n.t("recurring_meeting.open.blankslate.title"),
blankslate_desc: I18n.t("recurring_meeting.open.blankslate.desc")