Changeset 0.23.1 (#154)
This commit is contained in:
@@ -166,7 +166,7 @@ const Pages = {
|
||||
},
|
||||
|
||||
async editUserRole(id, username, currentRole) {
|
||||
const role = prompt(`Role for ${username}:`, currentRole);
|
||||
const role = await showPrompt({ title: `Set role for ${username}`, value: currentRole, ok: 'Save' });
|
||||
if (!role || role === currentRole) return;
|
||||
const ok = await _api('PUT', '/api/v1/admin/users/' + id, { role });
|
||||
if (ok) window.location.reload();
|
||||
|
||||
Reference in New Issue
Block a user