@@ -2168,6 +2210,7 @@
try {
const res = await fetch(API.auth + '?action=users', { credentials: 'include' }).then(r => r.json());
const users = res.data || [];
+ window._cachedUsersList = users;
const roleColors = { admin: '#f59e0b', surveyor: '#10b981', pemangku: '#3b82f6' };
area.innerHTML = `
@@ -2201,11 +2244,12 @@
${h(u.nama_lengkap)} @${h(u.username)}
${ROLE_LABELS[u.role] || u.role} ${!u.is_active ? '(Nonaktif)' : ''}