fix text dark progress bar gialla

This commit is contained in:
zaccaria.majid
2022-10-17 09:22:38 +02:00
parent 9e4822d529
commit bef0ee6000
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ else
</div>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" style="width: @Math.Round(calcolaPerc(statRecord.TotDurata),0)%; background-color:@statRecord.Css;" aria-valuemax="100">@($"{calcolaPerc(statRecord.TotDurata):N1}%")</div>
<div class="progress-bar @colorChanger(@statRecord.Css)" role="progressbar" aria-valuenow="0" aria-valuemin="0" style="width: @Math.Round(calcolaPerc(statRecord.TotDurata),0)%; background-color:@statRecord.Css;" aria-valuemax="100">@($"{calcolaPerc(statRecord.TotDurata):N1}%")</div>
</div>
</div>
+11
View File
@@ -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(() =>