Fix workspace user header null render and ignore .idea

This commit is contained in:
2026-02-26 11:01:15 +01:00
parent d0da35a68c
commit 9036a3a157
4 changed files with 14 additions and 1 deletions

View File

@@ -25,7 +25,14 @@
<p>Tabletop utility cockpit</p>
</div>
<div class="header-group context">
<p><strong>@User!.DisplayName</strong> <span class="muted">(@User.Username)</span></p>
@if (User is null)
{
<p><strong>Loading user...</strong></p>
}
else
{
<p><strong>@User.DisplayName</strong> <span class="muted">(@User.Username)</span></p>
}
<p>Campaign: <strong>@(SelectedCampaignName ?? "No campaign selected")</strong></p>
<p>Active: <strong>@(ActiveCharacterName ?? "None selected")</strong></p>
</div>