Skip to content

Commit 8dea23c

Browse files
authored
Merge 300cd3c into 3046f2a
2 parents 3046f2a + 300cd3c commit 8dea23c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/Aguacongas.TheIdServer.BlazorApp/Shared/MainLayout.razor

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
<EntityInfo />
1313
<LoginDisplay />
1414
</div>
15-
1615
<div class="content px-4">
17-
@Body
16+
@if (IsClientSide)
17+
{
18+
@Body
19+
}
20+
else
21+
{
22+
<PageLoading Information="Loading..." />
23+
}
1824
</div>
1925
</div>
2026
<Toaster />
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System.Runtime.InteropServices;
2+
3+
namespace Aguacongas.TheIdServer.BlazorApp.Shared
4+
{
5+
public partial class MainLayout
6+
{
7+
bool IsClientSide => RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"));
8+
}
9+
}

0 commit comments

Comments
 (0)