Admin: Test-Push-Button pro User (nur sichtbar wenn Pushover eingerichtet)

This commit is contained in:
2026-06-25 00:11:41 +02:00
parent e6c80ab7ee
commit 8eea117321
2 changed files with 32 additions and 0 deletions

View File

@@ -2439,6 +2439,19 @@ function UserManagement({ toast }) {
</div>
{/* Aktions-Buttons */}
<div style={{display:'flex',gap:4,flexShrink:0,flexWrap:'wrap',justifyContent:'flex-end'}}>
{!!u.has_pushover && (
<button
onClick={async () => {
try {
await api(`/admin/users/${u.id}/test-push`, { method:'POST', body:{ message:'Wat is mit meinen Fische?' } });
toast(`Push an ${u.username} gesendet ✓`);
} catch(e) { toast(e.message, 'error'); }
}}
title={`Test-Push an ${u.username}`}
style={{...S.btn('#ff6b9d',true), fontSize:11, padding:'4px 8px'}}>
🔔
</button>
)}
<button onClick={()=>{setResetId(u.id);setResetPw('');}}
style={{...S.btn('#ffe66d',true),fontSize:10,padding:'4px 8px'}}>🔑</button>
<button