24 lines
367 B
Plaintext
24 lines
367 B
Plaintext
@page "/inspection"
|
|
|
|
@inject TripManager TripManager;
|
|
|
|
@if(Inspection is not null)
|
|
{
|
|
<InspectionFiller Inspection=@Inspection/>
|
|
}
|
|
else
|
|
{
|
|
<Spinner />
|
|
}
|
|
|
|
@code
|
|
{
|
|
public Inspection? Inspection = null;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
await base.OnInitializedAsync();
|
|
Inspection = TripManager.Current;
|
|
}
|
|
}
|