problems tree view

This commit is contained in:
Matt Parker
2025-08-17 11:29:20 +10:00
parent de89cfb1e9
commit fa14ec935c
2 changed files with 14 additions and 12 deletions

View File

@@ -5,13 +5,13 @@
@if (_diagnostics.Length is not 0)
{
@ProjectModel.Name
@foreach(var diagnostic in _diagnostics)
{
<div>
<strong>@diagnostic.Id</strong>: @diagnostic.GetMessage()
</div>
}
<MudTreeViewItem T="string" TextTypo="Typo.body2" EndTextTypo="Typo.caption" Expanded="true" Icon="@Icons.Material.Filled.Code" IconColor="Color.Success" Value="@ProjectModel.Name" Text="@ProjectModel.Name" EndText="@($"{_diagnostics.Length} diagnostics")">
@foreach (var diagnostic in _diagnostics)
{
<MudTreeViewItem T="string" TextTypo="Typo.body2" Icon="@Icons.Material.Filled.Folder" IconColor="Color.Primary" Value="@diagnostic.Id" Text="@diagnostic.Id">
</MudTreeViewItem>
}
</MudTreeViewItem>
}
@code {