v0.10.3 ui changes and bug fixes

This commit is contained in:
2026-03-20 12:56:28 -04:00
parent f2e32dae92
commit a072a13706
9 changed files with 550 additions and 15 deletions

View File

@@ -222,12 +222,17 @@ export default function UserManagerModal({ onClose }) {
const [userPass, setUserPass] = useState('user@1234');
const [loadError, setLoadError] = useState('');
const load = () => {
const load = async () => {
setLoadError('');
api.getUsers()
.then(({ users }) => setUsers(users))
.catch(e => setLoadError(e.message || 'Failed to load users'))
.finally(() => setLoading(false));
setLoading(true);
try {
const { users } = await api.getUsers();
setUsers(users || []);
} catch (e) {
setLoadError(e.message || 'Failed to load users');
} finally {
setLoading(false);
}
};
useEffect(() => {
load();