Files
I150/srcs/RobotNet10/FleetManager/RobotNet10.FleetManager.Client/Components/RobotDetail/MapsCard.razor
2026-07-03 16:37:12 +07:00

33 lines
957 B
Plaintext

@using RobotNet.VDA5050.State
<MudPaper Class="pa-4" Elevation="2">
<MudText Typo="Typo.h6" Class="mb-3">Maps</MudText>
@if (State?.Maps != null && State.Maps.Length > 0)
{
<MudTable Items="@State.Maps" T="Map" Hover="true" Dense="true" Elevation="0">
<HeaderContent>
<MudTh>Map ID</MudTh>
<MudTh>Map Description</MudTh>
</HeaderContent>
<RowTemplate>
<MudTd DataLabel="Map ID">@context.MapId</MudTd>
<MudTd DataLabel="Map Description">@(context.MapDescription ?? "N/A")</MudTd>
</RowTemplate>
</MudTable>
}
else
{
<MudText Typo="Typo.body2" Align="Align.Center">No maps available</MudText>
}
</MudPaper>
@code {
public StateMsg? State { get; set; }
public void Update(StateMsg? state)
{
State = state;
StateHasChanged();
}
}