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
|
@ -5,6 +5,12 @@ class DossierProjectionService
|
|||
|
||||
corrections.any? { _1[:resolved_at].nil? }
|
||||
end
|
||||
|
||||
def resolved_corrections?
|
||||
return false if corrections.blank?
|
||||
|
||||
corrections.all? { _1[:resolved_at].present? }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue