Skip to content

Commit

Permalink
removed flightawre display code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcoombs2000 committed Sep 15, 2024
1 parent 82a75f7 commit 5b1bfb9
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions Features/Routes/UI/Pages/Routes.razor
Original file line number Diff line number Diff line change
Expand Up @@ -45,55 +45,6 @@
</QuickGrid>
</div>
}

@if (_showFlightAwareLoading || _displayedFlightAwareRoutes is not null)
{
<div class="border border-slate-600 p-2">
<h1 class="text-2xl">Real World Routes</h1>
@if (_showFlightAwareLoading)
{
<Spinner />
}
else if (_displayedFlightAwareRoutes is not null)
{
<QuickGrid Items="@_displayedFlightAwareRoutes.FlightRouteSummaries.AsQueryable()">
<PropertyColumn Property="@(p => p.RouteFrequency)" Title="Freq" />
<PropertyColumn Property="@(p => p.Route)" Title="Freq" />
<TemplateColumn Title="Altitude">
@if (context.MinAltitude is null && context.MaxAltitude is null)
{
<span></span>
}
else if (context.MinAltitude is null)
{
<span>@ToFlightLevel(context.MaxAltitude)</span>
}
else if (context.MaxAltitude is null)
{
<span>@ToFlightLevel(@context.MinAltitude)</span>
}
else
{
<span>@ToFlightLevel(context.MinAltitude) - @ToFlightLevel(context.MaxAltitude)</span>
}
</TemplateColumn>
</QuickGrid>

<QuickGrid Items="@_displayedFlightAwareRoutes.MostRecent.AsQueryable()">
<PropertyColumn Property="@(p => p.Callsign)" />
<PropertyColumn Property="@(p => p.AircraftIcaoId)" Title="Type" />
<PropertyColumn Property="@(p => p.Route)" />
<TemplateColumn Title="Altitude">
<span>@ToFlightLevel(context.Altitude)</span>
</TemplateColumn>
</QuickGrid>
}
else if (_isFlightAwareError)
{
<p>Error loading readl world routes</p>
}
</div>
}
</div>

@code {
Expand Down

0 comments on commit 5b1bfb9

Please sign in to comment.