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

@@ -72,10 +72,8 @@ else
}
else
{
<div class="text-center py-4">
<i class="bi bi-app text-muted" style="font-size: 2rem;"></i>
<p class="text-muted small mt-2 mb-0">Create a customer and app first to store app secrets.</p>
</div>
<EmptyState Icon="bi-app"
Message="Create a customer and app first to store app secrets." />
}
}
else if (scope == "component")
@@ -99,10 +97,8 @@ else
}
else
{
<div class="text-center py-4">
<i class="bi bi-puzzle text-muted" style="font-size: 2rem;"></i>
<p class="text-muted small mt-2 mb-0">Create an environment, cluster, and component first to store component secrets.</p>
</div>
<EmptyState Icon="bi-puzzle"
Message="Create an environment, cluster, and component first to store component secrets." />
}
}
else if (scope == "storage")
@@ -126,10 +122,8 @@ else
}
else
{
<div class="text-center py-4">
<i class="bi bi-hdd text-muted" style="font-size: 2rem;"></i>
<p class="text-muted small mt-2 mb-0">Create a storage link first to view its secrets.</p>
</div>
<EmptyState Icon="bi-hdd"
Message="Create a storage link first to view its secrets." />
}
}
@@ -154,10 +148,8 @@ else
}
else
{
<div class="text-center py-4">
<i class="bi bi-database text-muted" style="font-size: 2rem;"></i>
<p class="text-muted small mt-2 mb-0">No CNPG clusters found for this tenant.</p>
</div>
<EmptyState Icon="bi-database"
Message="No CNPG clusters found for this tenant." />
}
}
@@ -226,20 +218,13 @@ else
}
@* Secrets table *@
@if (secrets is null)
<LoadingPanel Loading="@(secrets is null)">
@if (secrets is not null && secrets.Count == 0)
{
<div class="text-center py-3">
<div class="spinner-border spinner-border-sm text-primary" role="status"></div>
</div>
<EmptyState Icon="bi-lock"
Message="No secrets stored yet. Add one above." />
}
else if (secrets.Count == 0)
{
<div class="text-center py-3">
<i class="bi bi-lock text-muted" style="font-size: 2rem;"></i>
<p class="text-muted small mt-1 mb-0">No secrets stored yet. Add one above.</p>
</div>
}
else
else if (secrets is not null)
{
<div class="table-responsive">
<table class="table table-hover align-middle mb-0">
@@ -385,6 +370,7 @@ else
</table>
</div>
}
</LoadingPanel>
@if (syncOutput is not null)
{
<div class="mt-3 p-2 bg-dark text-white rounded font-monospace small" style="white-space: pre-wrap; max-height: 200px; overflow-y: auto;">@syncOutput</div>