v0.6.5 various updates
This commit is contained in:
@@ -22,7 +22,6 @@ export default function HelpModal({ onClose, dismissed: initialDismissed }) {
|
||||
setDismissed(val);
|
||||
try {
|
||||
await api.dismissHelp(val);
|
||||
if (val) onClose(); // immediately close when "do not show again" checked
|
||||
} catch (_) {}
|
||||
};
|
||||
|
||||
|
||||
@@ -32,7 +32,9 @@ function useAppSettings() {
|
||||
|
||||
useEffect(() => {
|
||||
const name = settings.app_name || 'jama';
|
||||
document.title = name;
|
||||
// Preserve any unread badge prefix already set by Chat.jsx
|
||||
const prefix = document.title.match(/^(\(\d+\)\s*)/)?.[1] || '';
|
||||
document.title = prefix + name;
|
||||
const logoUrl = settings.logo_url;
|
||||
const faviconUrl = logoUrl || '/icons/jama.png';
|
||||
let link = document.querySelector("link[rel~='icon']");
|
||||
|
||||
@@ -91,7 +91,12 @@ function UserRow({ u, onUpdated }) {
|
||||
{u.status !== 'active' && <span className="role-badge status-suspended">{u.status}</span>}
|
||||
{!!u.is_default_admin && <span className="text-xs" style={{ color: 'var(--text-tertiary)' }}>Default Admin</span>}
|
||||
</div>
|
||||
<div style={{ fontSize: 12, color: 'var(--text-secondary)', marginTop: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{u.email}</div>
|
||||
<div style={{ fontSize: 12, color: 'var(--text-secondary)', marginTop: 1, display: 'flex', alignItems: 'center', gap: 8, flexWrap: 'wrap' }}>
|
||||
<span style={{ overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{u.email}</span>
|
||||
<span style={{ color: 'var(--text-tertiary)', whiteSpace: 'nowrap', flexShrink: 0 }}>
|
||||
Last login: {u.last_login ? new Date(u.last_login + 'Z').toLocaleString(undefined, { dateStyle: 'medium', timeStyle: 'short' }) : 'Never'}
|
||||
</span>
|
||||
</div>
|
||||
{!!u.must_change_password && <div className="text-xs" style={{ color: 'var(--warning)' }}>⚠ Must change password</div>}
|
||||
</div>
|
||||
<svg
|
||||
|
||||
Reference in New Issue
Block a user