bugs fixes due to reges curruption
This commit is contained in:
@@ -106,7 +106,7 @@ function UserRow({ u, onUpdated }) {
|
||||
{editName ? (
|
||||
<div style={{ display:'flex', gap:6, alignItems:'center' }}>
|
||||
<input className="input" style={{ flex:1, fontSize:13, padding:'5px 8px' }}
|
||||
value={nameVal} onChange={e = /> setNameVal(e.target.value)}
|
||||
value={nameVal} onChange={e => setNameVal(e.target.value)}
|
||||
onKeyDown={e => { if(e.key==='Enter') handleSaveName(); if(e.key==='Escape'){setEditName(false);setNameVal(u.name);} }}
|
||||
autoComplete="new-password" onFocus={onIF} onBlur={onIB} />
|
||||
<button className="btn btn-primary btn-sm" onClick={handleSaveName}>Save</button>
|
||||
@@ -132,7 +132,7 @@ function UserRow({ u, onUpdated }) {
|
||||
<div style={{ display:'flex', gap:6, alignItems:'center' }}>
|
||||
<input className="input" style={{ flex:1, fontSize:13, padding:'5px 8px' }}
|
||||
type="text" placeholder="New password (min 6)" value={resetPw}
|
||||
onChange={e = /> setResetPw(e.target.value)}
|
||||
onChange={e => setResetPw(e.target.value)}
|
||||
onKeyDown={e => { if(e.key==='Enter') handleResetPw(); if(e.key==='Escape'){setShowReset(false);setResetPw('');} }}
|
||||
autoComplete="new-password" onFocus={onIF} onBlur={onIB} />
|
||||
<button className="btn btn-primary btn-sm" onClick={handleResetPw}>Set</button>
|
||||
@@ -178,15 +178,15 @@ function CreateUserForm({ userPass, onCreated, isMobile, onIF, onIB }) {
|
||||
<div style={{ display:'grid', gridTemplateColumns: isMobile ? '1fr' : '1fr 1fr', gap:12, marginBottom:12 }}>
|
||||
<div className="flex-col gap-1">
|
||||
<label className="text-sm font-medium" style={{ color:'var(--text-secondary)' }}>Full Name <span style={{ fontWeight:400, color:'var(--text-tertiary)' }}>(First Last)</span></label>
|
||||
<input className="input" placeholder="Jane Smith" autoComplete="new-password" autoCorrect="off" autoCapitalize="words" value={form.name} onChange={e = /> set('name')(e.target.value)} onFocus={onIF} onBlur={onIB} />
|
||||
<input className="input" placeholder="Jane Smith" autoComplete="new-password" autoCorrect="off" autoCapitalize="words" value={form.name} onChange={e => set('name')(e.target.value)} onFocus={onIF} onBlur={onIB} />
|
||||
</div>
|
||||
<div className="flex-col gap-1">
|
||||
<label className="text-sm font-medium" style={{ color:'var(--text-secondary)' }}>Email</label>
|
||||
<input className="input" type="email" placeholder="jane@example.com" autoComplete="new-password" value={form.email} onChange={e = /> set('email')(e.target.value)} onFocus={onIF} onBlur={onIB} />
|
||||
<input className="input" type="email" placeholder="jane@example.com" autoComplete="new-password" value={form.email} onChange={e => set('email')(e.target.value)} onFocus={onIF} onBlur={onIB} />
|
||||
</div>
|
||||
<div className="flex-col gap-1">
|
||||
<label className="text-sm font-medium" style={{ color:'var(--text-secondary)' }}>Temp Password <span style={{ fontWeight:400, color:'var(--text-tertiary)' }}>(blank = {userPass})</span></label>
|
||||
<input className="input" type="text" autoComplete="new-password" value={form.password} onChange={e = /> set('password')(e.target.value)} onFocus={onIF} onBlur={onIB} />
|
||||
<input className="input" type="text" autoComplete="new-password" value={form.password} onChange={e => set('password')(e.target.value)} onFocus={onIF} onBlur={onIB} />
|
||||
</div>
|
||||
<div className="flex-col gap-1">
|
||||
<label className="text-sm font-medium" style={{ color:'var(--text-secondary)' }}>Role</label>
|
||||
@@ -353,7 +353,7 @@ export default function UserManagerPage({ isMobile = false, onProfile, onHelp, o
|
||||
<div style={{ flex:1, overflowY:'auto', padding:16 }}>
|
||||
{tab === 'users' && (
|
||||
<>
|
||||
<input className="input" placeholder="Search users…" value={search} onChange={e = /> setSearch(e.target.value)}
|
||||
<input className="input" placeholder="Search users…" value={search} onChange={e => setSearch(e.target.value)}
|
||||
onFocus={onIF} onBlur={onIB}
|
||||
autoComplete="new-password" autoCorrect="off" spellCheck={false}
|
||||
style={{ marginBottom:16, width:'100%', maxWidth: isMobile ? '100%' : 400 }} />
|
||||
|
||||
Reference in New Issue
Block a user