refactor(sva): dossier can't repasser en construction without pending correction
This commit is contained in:
parent
30df476791
commit
d70278a534
9 changed files with 48 additions and 5 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue