{#key selectedUser} { users = await getUsers(localStorage.token); }} /> {/key} {#if loaded} Users ({users.length}) { toggleSignUpEnabled(); }} > {#if signUpEnabled} New Sign Up Enabled {:else} New Sign Up Disabled {/if} Click on the user role cell in the table to change a user's role. Name Email Role Action {#each users as user} {user.name} {user.email} { if (user.role === 'user') { updateRoleHandler(user.id, 'admin'); } else if (user.role === 'pending') { updateRoleHandler(user.id, 'user'); } else { updateRoleHandler(user.id, 'pending'); } }}>{user.role} { showEditUserModal = !showEditUserModal; selectedUser = user; }} > { deleteUserHandler(user.id); }} > {/each} {/if}