From bef0ee60001e7dc9f85c956e7da2f1af2e8c8f67 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Mon, 17 Oct 2022 09:22:38 +0200 Subject: [PATCH] fix text dark progress bar gialla --- MP.SPEC/Components/ListODL.razor | 2 +- MP.SPEC/Components/ListODL.razor.cs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/MP.SPEC/Components/ListODL.razor b/MP.SPEC/Components/ListODL.razor index 0a1ecb65..f2521526 100644 --- a/MP.SPEC/Components/ListODL.razor +++ b/MP.SPEC/Components/ListODL.razor @@ -197,7 +197,7 @@ else
-
@($"{calcolaPerc(statRecord.TotDurata):N1}%")
+
@($"{calcolaPerc(statRecord.TotDurata):N1}%")
diff --git a/MP.SPEC/Components/ListODL.razor.cs b/MP.SPEC/Components/ListODL.razor.cs index 26e9220d..89a78e52 100644 --- a/MP.SPEC/Components/ListODL.razor.cs +++ b/MP.SPEC/Components/ListODL.razor.cs @@ -3,6 +3,7 @@ using Microsoft.JSInterop; using MP.Data; using MP.Data.DatabaseModels; using MP.SPEC.Data; +using System.Formats.Asn1; namespace MP.SPEC.Components { @@ -70,6 +71,16 @@ namespace MP.SPEC.Components await reloadData(); } + protected string colorChanger(string colorCSS) + { + string answ = ""; + if(colorCSS == "yellow") + { + answ = "text-dark"; + } + return answ; + } + protected async void OnSeachUpdated() { await InvokeAsync(() =>