fix invites + add pending user tag + home link
This commit is contained in:
parent
44ce8eb0c0
commit
f1fa5a9a2e
3 changed files with 11 additions and 5 deletions
|
@ -5,9 +5,9 @@
|
|||
import { navigate } from "svelte-navigator/src/history";
|
||||
|
||||
const searchParams = new URLSearchParams(document.location.search);
|
||||
let confirmed = true;
|
||||
let confirmed = false;
|
||||
let alreadyConfirmed = false;
|
||||
let newUser = true;
|
||||
let newUser = false;
|
||||
|
||||
let name = "";
|
||||
let email = "";
|
||||
|
@ -78,7 +78,7 @@
|
|||
You're trying to accept an invitation for a different user. Please sign
|
||||
out to accept this invitation.
|
||||
{:else if confirmed == true}
|
||||
Invitation confirmed!
|
||||
Invitation confirmed! <Link class="text-blue-400" to="/list/{searchParams.get('teamId')}">Go to list</Link>
|
||||
|
||||
{#if newUser == true}
|
||||
Welcome to Tehillim Split! Complete your new user profile below.
|
||||
|
|
|
@ -35,13 +35,18 @@
|
|||
{#await members}
|
||||
Loading...
|
||||
{:then members}
|
||||
<Link to="/list/{id}" class="text-blue-400">Back to {members.memberships[0].teamName}</Link><br>
|
||||
<Link to="/list/{id}" class="text-blue-400"
|
||||
>Back to {members.memberships[0].teamName}</Link
|
||||
><br />
|
||||
{#each members.memberships as member}
|
||||
<div class="m-1">
|
||||
{member.userName} - {member.userEmail}
|
||||
{#if rolesIndex(member, 'admin') !== -1}
|
||||
{#if rolesIndex(member, "admin") !== -1}
|
||||
<span class="border p-1">List Admin</span>
|
||||
{/if}
|
||||
{#if member.confirm == false}
|
||||
<span class="border p-1">Pending</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
<Link class="text-blue-400" to="#" on:click={inviteMember}
|
||||
|
|
|
@ -106,6 +106,7 @@
|
|||
<Header />
|
||||
|
||||
<div class="my-5">
|
||||
<Link class="text-blue-400" to="/">Home</Link>
|
||||
{#await list}
|
||||
Loading...
|
||||
{:then list}
|
||||
|
|
Loading…
Reference in a new issue