From 87c92d1306657e73092bf2d5733934917adfd417 Mon Sep 17 00:00:00 2001 From: Claudio Schaad Date: Thu, 21 Aug 2025 16:40:20 +0200 Subject: [PATCH] Add year and month --- Client/Pages/Index.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/Pages/Index.razor.cs b/Client/Pages/Index.razor.cs index b7ee35b..815f118 100644 --- a/Client/Pages/Index.razor.cs +++ b/Client/Pages/Index.razor.cs @@ -104,7 +104,7 @@ namespace ShiftScheduler.Client.Pages var response = await HttpClient.PostAsJsonAsync("api/shift/export_pdf", shiftsWithTransportList); var bytes = await response.Content.ReadAsByteArrayAsync(); var base64 = Convert.ToBase64String(bytes); - await JSRuntime.InvokeVoidAsync("downloadFile", "schedule.pdf", "application/pdf", base64); + await JSRuntime.InvokeVoidAsync("downloadFile", $"Schedule {EditYear}-{EditMonth:00}.pdf", "application/pdf", base64); } private async Task SaveScheduleToStorage()