Skip to content

Commit

Permalink
Merge branch '151-show-hide-geolocated-elements-from-the-map-as-an-ad…
Browse files Browse the repository at this point in the history
…min' into 'main'

Resolve "Show/Hide geolocated elements from the map as an admin"

See merge request decidim/decidim-module-geo!141
  • Loading branch information
Hadrien Froger committed Oct 16, 2024
2 parents adb2a51 + 0e8bb8f commit a0690ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/cells/decidim/geo/geo_collection_map_cell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ def collection_options
id: "Assemblies",
filters: assemblies_filter,
scopes: assemblies_scopes,
hide_empty: true,
is_index: true
}
when "decidim/participatory_processes/participatory_processes:index"
{
id: "Processes",
filters: processes_filter,
scopes: processes_scopes,
hide_empty: true,
is_index: true
}
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<%= cell(
"decidim/geo/geo_collection_map",
id: "Indexes",
hide_empty: true,
is_index: false
) %>
2 changes: 1 addition & 1 deletion lib/decidim/geo/filters/geo_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Geo
module Api
class GeoQuery
attr_reader :locale, :graphql_params, :organization, :current_user, :params
delegate :count, to: :results, prefix: true

def initialize(organization, current_user, params, locale)
@locale = locale || I18n.locale
Expand Down Expand Up @@ -79,7 +80,6 @@ def results
query
end

delegate :count, to: :results, prefix: true

private

Expand Down

0 comments on commit a0690ac

Please sign in to comment.