database and gitsync issues fixed

This commit is contained in:
Nils Blomgren
2026-06-07 14:54:16 +02:00
parent 8dc46ef031
commit 76b7e55931
72 changed files with 31067 additions and 1508 deletions

View File

@@ -125,20 +125,14 @@ else if (selectedEnv is not null)
}
@* --- Cluster Cards --- *@
@if (envClusters is null)
<LoadingPanel Loading="@(envClusters is null)">
@if (envClusters is not null && envClusters.Count == 0)
{
<div class="text-center py-3">
<div class="spinner-border spinner-border-sm text-primary" role="status"></div>
</div>
<EmptyState Icon="bi-hdd-rack"
Title="No clusters yet"
Message="Register a cluster above to start deploying." />
}
else if (envClusters.Count == 0)
{
<div class="text-center py-5">
<i class="bi bi-hdd-rack text-muted" style="font-size: 3rem;"></i>
<p class="text-muted mt-2 mb-0">No clusters registered yet.</p>
</div>
}
else
else if (envClusters is not null)
{
<div class="row row-cols-1 row-cols-md-2 g-3">
@foreach (KubernetesCluster cluster in envClusters)
@@ -168,6 +162,7 @@ else if (selectedEnv is not null)
}
</div>
}
</LoadingPanel>
}
else
{
@@ -201,21 +196,14 @@ else
</div>
}
@if (environments is null)
<LoadingPanel Loading="@(environments is null)">
@if (environments is not null && environments.Count == 0)
{
<div class="text-center py-4">
<div class="spinner-border spinner-border-sm text-primary" role="status"></div>
<span class="ms-2 text-muted">Loading environments...</span>
</div>
<EmptyState Icon="bi-layers"
Title="No environments yet"
Message="Create one above to get started." />
}
else if (environments.Count == 0)
{
<div class="text-center py-5">
<i class="bi bi-layers text-muted" style="font-size: 3rem;"></i>
<p class="text-muted mt-2 mb-0">No environments yet. Create one above to get started.</p>
</div>
}
else
else if (environments is not null)
{
<div class="list-group shadow-sm">
@foreach (Data.Environment env in environments)
@@ -255,6 +243,7 @@ else
}
</div>
}
</LoadingPanel>
}
@code {