ProcedurePresentation.filterable_fields_options -> InstructeurFilterComponent.filterable_fields_options

This commit is contained in:
mfo 2024-07-20 07:43:44 +02:00
parent 379c9fb812
commit 41ea39abb1
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
4 changed files with 28 additions and 33 deletions

View file

@ -31,14 +31,6 @@ class ProcedurePresentation < ApplicationRecord
]
end
def filterable_fields_options
procedure.facets.filter_map do |facet|
next if facet.filterable == false
[facet.label, facet.id]
end
end
def displayed_fields_for_headers
[
Facet.new(table: 'self', column: 'id', classname: 'number-col'),