Skip to content

Commit 822739e

Browse files
committed
feat: hide all action cards and show suspended message with Discord support link
1 parent bc14b77 commit 822739e

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

public/js/app.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,14 @@ async function renderServerDetail(serverId) {
20372037
</div>
20382038
20392039
<div id="server-tab-actions" class="tab-content" style="display:${activeTab === 'actions' ? 'block' : 'none'}">
2040+
${isSuspended ? html`
2041+
<div style="text-align:center;padding:48px 24px">
2042+
<svg width="64" height="64" viewBox="0 0 24 24" fill="none" stroke="var(--accent-red)" stroke-width="1.5" style="margin-bottom:16px"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
2043+
<h2 style="margin:0 0 8px 0;color:var(--text-primary)">Server Suspended</h2>
2044+
<p style="color:var(--text-secondary);font-size:0.95rem;margin:0 0 4px 0">This server has been suspended. No actions are available.</p>
2045+
<p style="color:var(--text-secondary);font-size:0.95rem;margin:0">Please contact support via <a href="https://discord.zero-host.org" target="_blank" style="color:var(--accent-1);text-decoration:underline">Discord</a> for assistance.</p>
2046+
</div>
2047+
` : html`
20402048
<div class="action-card">
20412049
<div class="action-card-header">
20422050
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M13 2L3 14h9l-1 8 10-12h-9l1-8z"/></svg>
@@ -2076,7 +2084,6 @@ async function renderServerDetail(serverId) {
20762084
<button class="btn btn-warning btn-full btn-reinstall-server" data-server-id="${s.id}" data-server-name="${s.name.replace(/"/g, '&quot;')}">Reinstall Server</button>
20772085
</div>
20782086
2079-
${!isSuspended ? html`
20802087
<div class="action-card">
20812088
<div class="action-card-header">
20822089
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 6h18M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"/></svg>
@@ -2087,7 +2094,7 @@ async function renderServerDetail(serverId) {
20872094
</div>
20882095
<button class="btn btn-danger btn-full btn-delete-server" data-server-id="${s.id}" data-server-name="${s.name.replace(/"/g, '&quot;')}">Delete Server</button>
20892096
</div>
2090-
` : ''}
2097+
`}
20912098
</div>
20922099
`;
20932100

0 commit comments

Comments
 (0)