feat(procedure): hide estimated fill duration when super admin disabled it
Closes #8466
This commit is contained in:
parent
8e35c0a465
commit
fa0f72aaba
4 changed files with 47 additions and 17 deletions
|
@ -10,6 +10,10 @@ class TypesDeChampEditor::EstimatedFillDurationComponent < ApplicationComponent
|
|||
@is_annotation
|
||||
end
|
||||
|
||||
def render?
|
||||
@revision.procedure.estimated_duration_visible?
|
||||
end
|
||||
|
||||
def show?
|
||||
!annotations? && @revision.types_de_champ_public.present?
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
%h1.procedure-title
|
||||
= procedure.libelle
|
||||
|
||||
- if procedure.persisted?
|
||||
- if procedure.persisted? && procedure.estimated_duration_visible?
|
||||
%p.procedure-configuration.procedure-configuration--fill-duration
|
||||
%span.icon.clock
|
||||
= t('shared.procedure_description.estimated_fill_duration', estimated_minutes: estimated_fill_duration_minutes(procedure))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue