From b8829ab77d5b063ed1c3eda218472993c59fc21f Mon Sep 17 00:00:00 2001 From: Annamaria Sassi Date: Thu, 6 Nov 2025 10:32:50 +0100 Subject: [PATCH] Aggiunto elemento di Loading mentre si aspetta la risposta delle opzioni --- Test.UI/Components/Pages/EditJWD.razor | 4 ++-- WebWindowComplex/Compo/AreaHwOption.razor | 2 +- WebWindowComplex/Compo/AreaHwOption.razor.cs | 3 ++- WebWindowComplex/Compo/CardSplit.razor.cs | 2 ++ WebWindowComplex/Compo/General.razor | 6 +++--- WebWindowComplex/TableComp.razor | 2 +- WebWindowComplex/TableComp.razor.cs | 15 +++------------ WebWindowComplex/WebWindowComplex.csproj | 16 +++++++++++++++- .../WebWindowConfigurator.csproj | 8 +++++++- 9 files changed, 36 insertions(+), 22 deletions(-) diff --git a/Test.UI/Components/Pages/EditJWD.razor b/Test.UI/Components/Pages/EditJWD.razor index 71ea354..7107545 100644 --- a/Test.UI/Components/Pages/EditJWD.razor +++ b/Test.UI/Components/Pages/EditJWD.razor @@ -86,8 +86,8 @@ else if (!string.IsNullOrEmpty(outSave)) @outSave } -
+@*
@JsonSer
-
+
*@ diff --git a/WebWindowComplex/Compo/AreaHwOption.razor b/WebWindowComplex/Compo/AreaHwOption.razor index a0d3482..b3977a0 100644 --- a/WebWindowComplex/Compo/AreaHwOption.razor +++ b/WebWindowComplex/Compo/AreaHwOption.razor @@ -13,7 +13,7 @@ { } - @if (!hwOptCollapsed) + @if (!hwOptCollapsed || !isLoadingHwOpt) { @foreach (var currOpt in CurrSash.HwOptionList) { diff --git a/WebWindowComplex/Compo/AreaHwOption.razor.cs b/WebWindowComplex/Compo/AreaHwOption.razor.cs index 71f517d..f109208 100644 --- a/WebWindowComplex/Compo/AreaHwOption.razor.cs +++ b/WebWindowComplex/Compo/AreaHwOption.razor.cs @@ -31,9 +31,10 @@ namespace WebWindowComplex.Compo /// [Parameter] public EventCallback EC_FirstHwOptionList { get; set; } + + private bool isLoadingHwOpt { get; set; } private bool hwOptCollapsed { get; set; } - private bool isLoadingHwOpt { get; set; } private async Task changeCollapsed() { diff --git a/WebWindowComplex/Compo/CardSplit.razor.cs b/WebWindowComplex/Compo/CardSplit.razor.cs index f85f9f8..72e18e9 100644 --- a/WebWindowComplex/Compo/CardSplit.razor.cs +++ b/WebWindowComplex/Compo/CardSplit.razor.cs @@ -78,6 +78,8 @@ namespace WebWindowComplex.Compo /// protected async Task RemoveArea(Split item) { + // richiesta reset dict shape + await EC_ReqResetDictShape.InvokeAsync(true); await EC_RemoveArea.InvokeAsync(item); } diff --git a/WebWindowComplex/Compo/General.razor b/WebWindowComplex/Compo/General.razor index ae75860..fb2306d 100644 --- a/WebWindowComplex/Compo/General.razor +++ b/WebWindowComplex/Compo/General.razor @@ -12,7 +12,7 @@
-
+