Allow Prospect Warnings

This commit is contained in:
Andre Beging
2022-06-11 06:00:54 +02:00
parent 4a9fe8bed4
commit 7c762e7d28
7 changed files with 259 additions and 15 deletions

View File

@@ -21,10 +21,13 @@
</small>
</h5>
@if (!string.IsNullOrWhiteSpace(Prospect?.Memo))
@if (!string.IsNullOrWhiteSpace(Prospect?.Memo) || Prospect?.Warning is true)
{
<Alert Color="Color.Info" Visible Class="p-2 mb-1">
<AlertDescription>@Prospect?.Memo</AlertDescription>
var alertColor = Prospect?.Warning is true ? Color.Warning : Color.Info;
var alertIconClass = Prospect?.Warning is true ? "fa-solid fa-triangle-exclamation" : "fa-solid fa-circle-info";
<Alert Color="alertColor" Visible Class="p-2 mb-1">
<AlertDescription><i class="@alertIconClass"></i> @Prospect?.Memo</AlertDescription>
</Alert>
}