fix: regenerate export from export template

This commit is contained in:
Christophe Robillard 2024-05-29 15:42:49 +02:00
parent 0ed166f510
commit fc90648c79
2 changed files with 3 additions and 2 deletions

View file

@ -11,9 +11,10 @@ class Dossiers::ExportLinkComponent < ApplicationComponent
@export_url = export_url @export_url = export_url
end end
def download_export_path(export_format:, statut:, no_progress_notification: nil) def download_export_path(export_format:, statut:, export_template_id: nil, no_progress_notification: nil)
@export_url.call(@procedure, @export_url.call(@procedure,
export_format: export_format, export_format: export_format,
export_template_id:,
statut: statut, statut: statut,
no_progress_notification: no_progress_notification) no_progress_notification: no_progress_notification)
end end

View file

@ -14,4 +14,4 @@
= export_button(export) = export_button(export)
- if export.failed? - if export.failed?
= button_to refresh_button_options(export)[:title], download_export_path(export_format: export.format, statut: export.statut), refresh_button_options(export) = button_to refresh_button_options(export)[:title], download_export_path(export_template_id: export.export_template&.id, export_format: export.format, statut: export.statut), refresh_button_options(export)