diff --git a/public/index.html b/public/index.html index 08eb169..f4ce463 100644 --- a/public/index.html +++ b/public/index.html @@ -2595,18 +2595,18 @@ } async function approveSub(id) { - try { await api('PATCH', `/admin/submissions/${id}`, { status: 'approved' }); toast("Angenommen β", "success"); renderAdmin(); } + try { await api('PATCH', `/admin/submissions/${id}`, { status: 'approved' }); toast("Accepted β", "success"); renderAdmin(); } catch (e) { toast(e.message, "danger"); } } async function rejectSub(id) { - try { await api('PATCH', `/admin/submissions/${id}`, { status: 'rejected' }); toast("Abgelehnt.", "danger"); renderAdmin(); } + try { await api('PATCH', `/admin/submissions/${id}`, { status: 'rejected' }); toast("Rejected β", "danger"); renderAdmin(); } catch (e) { toast(e.message, "danger"); } } async function injectSub(id, ghostName) { try { await api('PATCH', `/admin/submissions/${id}`, { status: 'approved' }); } catch { } const g = ghosts.find(x => x.name === ghostName); openGhostForm(g?.id || null); - setTimeout(() => toast("π‘ Submission-Info anzeigen: prΓΌfe den Tip!", "info"), 300); + setTimeout(() => toast("π‘ Show submission info: check the tip!", "info"), 300); renderAdmin(); } @@ -2614,8 +2614,8 @@ function openGhostForm(id) { const g = id ? ghosts.find(x => x.id === id) : null; editingId = id || null; - document.getElementById('em-title').textContent = g ? `Bearbeiten: ${g.name}` : 'Neuen Geist erstellen'; - document.getElementById('em-sub').textContent = g ? `Admin Β· Ghost Editor Β· ID: ${g.id}` : 'Admin Β· Ghost Editor Β· Neu'; + document.getElementById('em-title').textContent = g ? `Edit: ${g.name}` : 'New Ghost'; + document.getElementById('em-sub').textContent = g ? `Admin Β· Ghost Editor Β· ID: ${g.id}` : 'Admin Β· Ghost Editor Β· New'; document.getElementById('ef-name').value = g?.name || ''; document.getElementById('ef-sanity').value = g?.sanity ?? 50; document.getElementById('ef-hunt').value = g?.hunt || 'mid'; @@ -2692,19 +2692,19 @@ const ul = document.getElementById('user-sub-list'); try { const subs = await api('GET', '/api/submissions/mine'); - if (!subs.length) { ul.innerHTML = '