database and gitsync issues fixed
This commit is contained in:
@@ -10,14 +10,8 @@
|
||||
|
||||
<PageTitle>Tenants</PageTitle>
|
||||
|
||||
@if (!loaded)
|
||||
{
|
||||
<div class="text-center py-5">
|
||||
<div class="spinner-border text-primary" role="status"></div>
|
||||
<p class="text-muted mt-2">Loading tenants...</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
<LoadingPanel Loading="@(!loaded)" LoadingText="Loading tenants…">
|
||||
@if (loaded)
|
||||
{
|
||||
<div class="d-flex align-items-center justify-content-between mb-4">
|
||||
<div>
|
||||
@@ -49,18 +43,9 @@ else
|
||||
|
||||
@if (tenants is null || tenants.Count == 0)
|
||||
{
|
||||
<div class="text-center py-5">
|
||||
<i class="bi bi-building text-muted" style="font-size: 4rem;"></i>
|
||||
<h5 class="text-muted mt-3">No tenants yet</h5>
|
||||
@if (isAdmin)
|
||||
{
|
||||
<p class="text-muted">Create your first tenant above to get started.</p>
|
||||
}
|
||||
else
|
||||
{
|
||||
<p class="text-muted">You have not been added to any tenants yet.</p>
|
||||
}
|
||||
</div>
|
||||
<EmptyState Icon="bi-building"
|
||||
Title="No tenants yet"
|
||||
Message="@(isAdmin ? "Create your first tenant above to get started." : "You have not been added to any tenants yet.")" />
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -113,6 +98,7 @@ else
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</LoadingPanel>
|
||||
|
||||
@code {
|
||||
private List<Tenant>? tenants;
|
||||
|
||||
Reference in New Issue
Block a user