2022-09-08 11:25:39 +02:00
|
|
|
class EditableChamp::EditableChampBaseComponent < ApplicationComponent
|
|
|
|
def initialize(form:, champ:, seen_at: nil)
|
|
|
|
@form, @champ, @seen_at = form, champ, seen_at
|
|
|
|
end
|
2022-12-16 12:19:49 +01:00
|
|
|
|
|
|
|
def data_dependent_conditions
|
|
|
|
{ "dependent-conditions": "true" } if @champ.dependent_conditions?
|
|
|
|
end
|
2022-09-08 11:25:39 +02:00
|
|
|
end
|