Add SDG target filter to advanced search
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user