Admin: Test-Push-Button pro User (nur sichtbar wenn Pushover eingerichtet)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user