Skip to content

Commit e3e0c67

Browse files
committed
fix: use server identifier for Open Hydrodactyl URL
1 parent b180a47 commit e3e0c67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/js/admin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ async function fetchAdminServers(pageNum) {
567567
<td data-label="Status"><span class="server-card-status ${statusClass}">${escapeHtml(statusLabel)}</span></td>
568568
<td data-label="Actions">
569569
<a class="btn btn-ghost btn-sm" href="/admin/server/${s.id}" onclick="event.preventDefault();adminNavigateTo('server/${s.id}')">Details</a>
570-
<button class="btn btn-ghost btn-sm" onclick="window.open('${PTERO_URL}/server/${s.server_uuid}', '_blank')">Open Hydrodactyl</button>
570+
<button class="btn btn-ghost btn-sm" onclick="window.open('${PTERO_URL}/server/${s.identifier}', '_blank')">Open Hydrodactyl</button>
571571
</td>
572572
</tr>
573573
`;
@@ -1300,7 +1300,7 @@ async function renderAdminUserDetail(userId) {
13001300
<td data-label="Expires">${formatDateWithTooltip(s.expires_at)}</td>
13011301
<td data-label="Actions" style="display:flex;gap:6px;flex-wrap:wrap">
13021302
<a class="btn btn-ghost btn-sm" href="/admin/server/${s.ptero_server_id}" onclick="event.preventDefault();adminNavigateTo('server/${s.ptero_server_id}')">Manage</a>
1303-
<button class="btn btn-ghost btn-sm" onclick="window.open('${PTERO_URL}/server/${s.server_uuid}', '_blank')">Open Pyrodactyl</button>
1303+
<button class="btn btn-ghost btn-sm" onclick="window.open('${PTERO_URL}/server/${s.identifier}', '_blank')">Open Pyrodactyl</button>
13041304
</td>
13051305
</tr>
13061306
`).join('')}

0 commit comments

Comments
 (0)