mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
Add device report view.
This commit is contained in:
26
Aaru.Server.New/Components/Pages/Report/View.razor
Normal file
26
Aaru.Server.New/Components/Pages/Report/View.razor
Normal file
@@ -0,0 +1,26 @@
|
||||
@page "/Report/View/{Id:int}"
|
||||
@using Aaru.Server.Database
|
||||
|
||||
@inject Microsoft.EntityFrameworkCore.IDbContextFactory<DbContext> DbContextFactory
|
||||
|
||||
<PageTitle>@_pageTitle</PageTitle>
|
||||
@if(_notFound)
|
||||
{
|
||||
<div class="stats-section">
|
||||
<h1 style="color: red; align-content: center; padding: 2rem">The requested device report has not been found...</h1>
|
||||
</div>
|
||||
|
||||
return;
|
||||
}
|
||||
@if(!_initialized)
|
||||
{
|
||||
<div class="stats-section">
|
||||
<h1 style="color: red; align-content: center; padding: 2rem">Loading...</h1>
|
||||
</div>
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
<div class="stats-section">
|
||||
<h1 style="align-content: center; padding: 2rem">@_pageTitle</h1>
|
||||
</div>
|
||||
Reference in New Issue
Block a user