2020-07-28 18:16:03 +02:00
|
|
|
|
module Mutations
|
|
|
|
|
class DossierModifierAnnotationCheckbox < Mutations::DossierModifierAnnotation
|
|
|
|
|
description "Modifier l’annotation au format oui/non."
|
|
|
|
|
|
|
|
|
|
argument :value, Boolean, required: true
|
|
|
|
|
|
|
|
|
|
def resolve(dossier:, annotation_id:, instructeur:, value:)
|
2023-01-05 12:18:27 +01:00
|
|
|
|
resolve_with_type(dossier:, annotation_id:, instructeur:, value:) do |_, value|
|
|
|
|
|
value ? 'true' : 'false'
|
2020-07-28 18:16:03 +02:00
|
|
|
|
end
|
|
|
|
|
end
|
2022-07-21 14:54:14 +02:00
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def input_type
|
|
|
|
|
:checkbox
|
|
|
|
|
end
|
2020-07-28 18:16:03 +02:00
|
|
|
|
end
|
|
|
|
|
end
|