Skip to content

Commit

Permalink
Fix selected pill with an override
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Mar 26, 2024
1 parent b834916 commit bec5f59
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# frozen_string_literal: true

# We would love to do a prepend instead of what is happening here
# For whatever reason though the prepend never properly works
# Even if we include the module it doesn't get loaded
# Must be some crazy loading shenanigans
# Pry-ing into the customization class and using the following commands might be useful for future debugging:
# $ -a Decidim::ParticipatoryProcesses::ProcessFiltersCell
# $ -a DecidimZuerich::ParticipatoryProcesses::ProcessFiltersCell
Decidim::ParticipatoryProcesses::ProcessFiltersCell.class_eval do
def other_filters_with_value
@other_filters_with_value ||= [current_filter] + other_filters.select do |filter|
process_count_by_filter[filter].positive?
end
end
end

0 comments on commit bec5f59

Please sign in to comment.