Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit 483788e

Browse files
committed
hide Renew Now button when server is suspended
1 parent a8dafe9 commit 483788e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ async function renderAdminServerDetail(serverId) {
366366
<button class="btn btn-danger" id="admin-btn-suspend" style="width:auto">${isSuspended ? 'Re-suspend' : 'Suspend'}</button>
367367
${isSuspended ? ahtml`<button class="btn btn-primary" id="admin-btn-unsuspend" style="width:auto">Unsuspend</button>` : ''}
368368
<button class="btn btn-warning" id="admin-btn-stop" style="width:auto">Stop</button>
369-
<button class="btn btn-ghost" id="admin-btn-renew-now" style="width:auto">Renew Now</button>
369+
${!isSuspended ? ahtml`<button class="btn btn-ghost" id="admin-btn-renew-now" style="width:auto">Renew Now</button>` : ''}
370370
</div>
371371
<div id="admin-action-msg" style="margin-top:12px;display:none"></div>
372372
</div>

0 commit comments

Comments
 (0)