Clearing Entity Click View on Clear and other notes

This commit is contained in:
2026-06-01 11:37:40 -04:00
parent 3974fcfb91
commit 026aebd5ad
13 changed files with 248 additions and 147 deletions
@@ -0,0 +1,32 @@
@inject IImmortalSelectionService FilterService
@using Model.Entity.Data
@implements IDisposable
<FormLayoutComponent>
<div style="@GetBorderStyle()">
@ChildContent
</div>
</FormLayoutComponent>
@code {
[Parameter] public RenderFragment? ChildContent { get; set; }
protected override void OnInitialized()
{
base.OnInitialized();
FilterService.Subscribe(StateHasChanged);
}
void IDisposable.Dispose()
{
FilterService.Unsubscribe(StateHasChanged);
}
string GetBorderStyle()
{
var faction = FilterService.GetFaction();
var color = faction == DataType.FACTION_Aru ? "#CD5C5C" : "#8EACCD";
return $"border-top: 4px solid {color}; padding-top: 4px;";
}
}