From 3da6d4e70b921dd8f62900c3a52fbf04dbec4aed Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Wed, 23 Jul 2025 10:38:40 +0200 Subject: [PATCH] Fix json conf anta singola/doppia (preview errata x nome sbagliato) --- Test.UI/Components/Pages/TestComponent.razor.cs | 3 +-- Test.UI/Data/Setup.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Test.UI/Components/Pages/TestComponent.razor.cs b/Test.UI/Components/Pages/TestComponent.razor.cs index e74cb50..c011a9b 100644 --- a/Test.UI/Components/Pages/TestComponent.razor.cs +++ b/Test.UI/Components/Pages/TestComponent.razor.cs @@ -69,11 +69,10 @@ namespace Test.UI.Components.Pages string rawVal = File.ReadAllText(cFile); var rawList = JsonConvert.DeserializeObject>(rawVal) ?? new List(); - // calcolo URL immagini... DTO da rivedere... + // calcolo URL immagini... DTO interno da rivedere? foreach (var item in rawList) { item.ImageUrl = ImgService.ImageUrl(imgBasePath, false, item.SVGFileName); - //item.ImageUrl = $"{imgBasePath}{imgTag}/{item.SVGFileName}"; AvailTemplateList.Add(item); } } diff --git a/Test.UI/Data/Setup.json b/Test.UI/Data/Setup.json index d7dec6f..f46dea8 100644 --- a/Test.UI/Data/Setup.json +++ b/Test.UI/Data/Setup.json @@ -2,7 +2,7 @@ { "Index": 1, "Description": "Anta singola", - "SVGFileName": "AntaDoppia.svg", + "SVGFileName": "AntaSingola.svg", "JwdFileName": "Data/AntaSingola.jwd" }, {