-
-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maps optional in meetings #7954
Conversation
4b8a287
to
218a676
Compare
218a676
to
abf0cd7
Compare
@@ -1,6 +1,8 @@ | |||
<%= render partial: "decidim/shared/component_announcement" %> | |||
|
|||
<%= cell "decidim/meetings/meetings_map", search.results %> | |||
<% if current_component.settings.maps_enabled? %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just an idea but could we also hide the map when there are no meetings with map pointers associated to them (online meetings only)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a good idea, if @decidim/product approves it I'll include the change
Yes, we agree! Let's include it then, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! And it was very easy to review, thanks! 🤩
@@ -95,6 +95,7 @@ class Meeting < Meetings::ApplicationRecord | |||
|
|||
TYPE_OF_MEETING.each do |type| | |||
scope type.to_sym, -> { where(type_of_meeting: type.to_sym) } | |||
scope "not_#{type}".to_sym, -> { where.not(type_of_meeting: type.to_sym) } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💬 I think this is ok and I'd not change it now, but I feel we are rewriting enums here. 😕
🎩 What? Why?
This PR:
📌 Related Issues
Testing
Describe the best way to test or validate your PR.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/
.📷 Screenshots
Please add screenshots of the changes you're proposing