feat(correction): badge Corrigé when a correction has been resolved
Closes #9928
This commit is contained in:
parent
261932b56f
commit
8e6a1c58b2
7 changed files with 35 additions and 4 deletions
|
@ -40,6 +40,10 @@ module DossierCorrectableConcern
|
|||
pending_corrections.exists?
|
||||
end
|
||||
|
||||
def last_correction_resolved?
|
||||
corrections.last&.resolved?
|
||||
end
|
||||
|
||||
def resolve_pending_correction
|
||||
pending_correction&.resolve
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue