fix: resolve PDF export icons path after moving icons to config/icons/
Icons were moved from wwwroot/icons/ to config/icons/ in the configurable-icons feature, but PdfExportService still referenced the old AppContext.BaseDirectory path. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d00f5ea8b7
commit
4f84fc8e03
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ namespace ShiftScheduler.Services
|
||||||
var shift = shiftWithTransport.Shift;
|
var shift = shiftWithTransport.Shift;
|
||||||
if (shift.IsPngIcon)
|
if (shift.IsPngIcon)
|
||||||
{
|
{
|
||||||
var iconPath = Path.Combine(AppContext.BaseDirectory, "wwwroot", "icons", shift.Icon);
|
var iconPath = Path.Combine(Directory.GetCurrentDirectory(), "config", "icons", shift.Icon);
|
||||||
if (File.Exists(iconPath))
|
if (File.Exists(iconPath))
|
||||||
{
|
{
|
||||||
table.Cell().Height(24).Element(CellStyleMiddle).Image(iconPath).FitArea();
|
table.Cell().Height(24).Element(CellStyleMiddle).Image(iconPath).FitArea();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue