refactor(ui): pods-tab verwijderen (pods-acties blijven via containers)
This commit is contained in:
+1
-28
@@ -49,9 +49,6 @@
|
|||||||
<div class="tab" id="tab-containers" onclick="setTab('containers')" title="Containers">
|
<div class="tab" id="tab-containers" onclick="setTab('containers')" title="Containers">
|
||||||
<span class="navIcon">📦</span><span class="navLabel">Containers</span>
|
<span class="navIcon">📦</span><span class="navLabel">Containers</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab" id="tab-pods" onclick="setTab('pods')" title="Pods">
|
|
||||||
<span class="navIcon">🧩</span><span class="navLabel">Pods</span>
|
|
||||||
</div>
|
|
||||||
<div class="tab" id="tab-systemd" onclick="setTab('systemd')" title="Systemd">
|
<div class="tab" id="tab-systemd" onclick="setTab('systemd')" title="Systemd">
|
||||||
<span class="navIcon">⚙️</span><span class="navLabel">Systemd</span>
|
<span class="navIcon">⚙️</span><span class="navLabel">Systemd</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -128,30 +125,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="view-pods" class="grid" style="display:none">
|
|
||||||
<div class="card" style="grid-column: 1 / -1;">
|
|
||||||
<div class="cardHeader">
|
|
||||||
<div class="cardTitle">Pods</div>
|
|
||||||
<div class="flex">
|
|
||||||
<button class="btn" onclick="fetchPods()">Ververs</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="cardBody">
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Naam</th>
|
|
||||||
<th>Status</th>
|
|
||||||
<th>Containers</th>
|
|
||||||
<th>Acties</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody id="podsTbody"></tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="view-systemd" class="grid" style="display:none">
|
<div id="view-systemd" class="grid" style="display:none">
|
||||||
<div class="card" style="grid-column: 1 / -1;">
|
<div class="card" style="grid-column: 1 / -1;">
|
||||||
<div class="cardHeader">
|
<div class="cardHeader">
|
||||||
@@ -399,7 +372,6 @@
|
|||||||
async function refreshActive() {
|
async function refreshActive() {
|
||||||
try {
|
try {
|
||||||
if (currentTab === 'containers') await fetchContainers();
|
if (currentTab === 'containers') await fetchContainers();
|
||||||
else if (currentTab === 'pods') await fetchPods();
|
|
||||||
else if (currentTab === 'systemd') await systemdRefresh();
|
else if (currentTab === 'systemd') await systemdRefresh();
|
||||||
else {
|
else {
|
||||||
// dashboard: haal in achtergrond counts + mini systemd
|
// dashboard: haal in achtergrond counts + mini systemd
|
||||||
@@ -428,6 +400,7 @@
|
|||||||
const pods = await api('/pods-dashboard','GET');
|
const pods = await api('/pods-dashboard','GET');
|
||||||
document.getElementById('countPods').textContent = (pods || []).length;
|
document.getElementById('countPods').textContent = (pods || []).length;
|
||||||
const tbody = document.getElementById('podsTbody');
|
const tbody = document.getElementById('podsTbody');
|
||||||
|
if (!tbody) return; // Pods-tab verwijderd: alleen countPods updaten, geen rendering
|
||||||
tbody.innerHTML = (pods || []).map(p => {
|
tbody.innerHTML = (pods || []).map(p => {
|
||||||
const name = p.Name || p.name || '';
|
const name = p.Name || p.name || '';
|
||||||
const status = p.Status || p.status || '';
|
const status = p.Status || p.status || '';
|
||||||
|
|||||||
Reference in New Issue
Block a user