Interactions als Notneeded markieren

This commit is contained in:
Andre Beging
2022-04-04 16:31:18 +02:00
parent c71d677b75
commit c70fb6426c
5 changed files with 54 additions and 16 deletions

View File

@@ -32,11 +32,14 @@
private List<Interaction> Interactions => Prospect?.Interactions?.Where(x => x.Type == Type).ToList() ?? new List<Interaction>();
private bool Done => Interactions.Count >= Minimum;
private bool NotNeeded => Interactions.Any(x => x.NotNeeded);
}
@{
var rowClass = "";
if (Done) rowClass += "done";
if (Done) rowClass += " done";
if (NotNeeded) rowClass += " notneeded";
}
<tr class="@rowClass" style="border-top: 5px solid transparent;">