@page "/"
@inherits DashboardPageBase
MXAccess Gateway Dashboard
@if (Snapshot is null)
{
Loading dashboard snapshot.
}
else
{
Galaxy Repository
View browse details →
@if (!string.IsNullOrWhiteSpace(Snapshot.Galaxy.LastError))
{
@Snapshot.Galaxy.LastError
}
}
@code {
private string? GalaxyRefreshDetail()
{
DashboardGalaxySummary galaxy = Snapshot!.Galaxy;
if (galaxy.LastQueriedAt is null)
{
return "never queried";
}
if (galaxy.LastSuccessAt is null)
{
return "no successful refresh yet";
}
return galaxy.LastQueriedAt > galaxy.LastSuccessAt
? $"last attempt {DashboardDisplay.DateTime(galaxy.LastQueriedAt)}"
: null;
}
}