refactor(sva): dossier can't repasser en construction without pending correction

This commit is contained in:
Colin Darie 2023-06-06 14:41:47 +02:00
parent 30df476791
commit d70278a534
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
9 changed files with 48 additions and 5 deletions

View file

@ -15,7 +15,7 @@ class Instructeurs::EnConstructionMenuComponent < ApplicationComponent
end
def menu_label
if dossier.en_construction?
if !dossier.may_repasser_en_construction?
t('.request_correction')
else
t(".revert_en_construction")