fix: regenerate export from export template
This commit is contained in:
parent
0ed166f510
commit
fc90648c79
2 changed files with 3 additions and 2 deletions
|
@ -11,9 +11,10 @@ class Dossiers::ExportLinkComponent < ApplicationComponent
|
|||
@export_url = export_url
|
||||
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_format: export_format,
|
||||
export_template_id:,
|
||||
statut: statut,
|
||||
no_progress_notification: no_progress_notification)
|
||||
end
|
||||
|
|
|
@ -14,4 +14,4 @@
|
|||
= export_button(export)
|
||||
|
||||
- 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)
|
||||
|
|
Loading…
Reference in a new issue