feat(dossier): correction can be of kind "outdated" by API, which will later improve UI wording

Cf #9485
This commit is contained in:
Colin Darie 2023-11-22 17:10:37 +01:00
parent 380cedc998
commit 249539fc27
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
4 changed files with 12 additions and 1 deletions

View file

@ -568,6 +568,11 @@ enum CorrectionReason {
Le dossier nest pas valide et nécessite une correction
"""
incorrect
"""
Le dossier doit être mis à jour et revalidé
"""
outdated
}
"""

View file

@ -6,7 +6,11 @@ class DossierCorrection < ApplicationRecord
scope :pending, -> { where(resolved_at: nil) }
enum reason: { incorrect: 'incorrect', incomplete: 'incomplete' }, _prefix: :dossier
enum reason: {
incorrect: 'incorrect',
incomplete: 'incomplete',
outdated: 'outdated'
}, _prefix: :dossier
def resolved?
resolved_at.present?

View file

@ -5,3 +5,4 @@ en:
reasons:
incorrect: "The file is invalid and needs to be corrected"
incomplete: "The file is incomplete and needs to be completed"
outdated: "The file needs to be updated and revalidated"

View file

@ -5,3 +5,4 @@ fr:
reasons:
incorrect: "Le dossier nest pas valide et nécessite une correction"
incomplete: "Le dossier est incomplet et nécessite dêtre complété"
outdated: "Le dossier doit être mis à jour et revalidé"