Add SDG target filter to advanced search

This commit is contained in:
Javi Martín
2021-01-21 00:56:43 +01:00
parent b8cd758437
commit 3ec628a63b
13 changed files with 98 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
class Shared::AdvancedSearchComponent < ApplicationComponent
include SDG::Goals::OptionsForSelect
include SDG::OptionsForSelect
private
@@ -34,6 +34,10 @@ class Shared::AdvancedSearchComponent < ApplicationComponent
super(advanced_search[:goal])
end
def target_options
super(advanced_search[:target])
end
def sdg?
SDG::ProcessEnabled.new(controller_path).enabled?
end