refactor: minor improvements

This commit is contained in:
Colin Darie 2024-11-13 18:07:01 +01:00
parent 605c550e6c
commit eabc43ce53
No known key found for this signature in database
GPG key ID: 4FB865FDBCA4BCC4
2 changed files with 2 additions and 5 deletions

View file

@ -4,6 +4,7 @@ class Dossiers::ExportDropdownComponent < ApplicationComponent
include ApplicationHelper
attr_reader :wrapper
attr_reader :export_templates
def initialize(procedure:, export_templates: nil, statut: nil, count: nil, class_btn: nil, export_url: nil, show_export_template_tab: true, wrapper: :div)
@procedure = procedure
@ -35,8 +36,4 @@ class Dossiers::ExportDropdownComponent < ApplicationComponent
statut: @statut,
no_progress_notification: no_progress_notification)
end
def export_templates
@export_templates
end
end

View file

@ -44,7 +44,7 @@
%p
= t('views.instructeurs.dossiers.tab_explainations.archives')
%br
Ces dossiers seront supprimés lorsque leur délai de conservation dans Démarches-simplifiées
Ces dossiers seront supprimés lorsque leur délai de conservation dans #{APPLICATION_NAME}
- if @procedure.duree_conservation_dossiers_dans_ds
= "(#{@procedure.duree_conservation_dossiers_dans_ds} mois)"
sera expiré.