2023-05-09 11:15:02 +02:00
|
|
|
class Procedure::GroupesSearchComponent < ApplicationComponent
|
2023-05-16 16:05:55 +02:00
|
|
|
def initialize(procedure:, query:, to_configure_count:, to_configure_filter:)
|
|
|
|
@procedure = procedure
|
|
|
|
@query = query
|
|
|
|
@to_configure_count = to_configure_count
|
|
|
|
@to_configure_filter = to_configure_filter
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def show_to_configure?
|
|
|
|
@to_configure_count > 0
|
2023-05-09 11:15:02 +02:00
|
|
|
end
|
|
|
|
end
|