Allow Prospect Warnings
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user