From 90f83efa067b63017f11e077ae7b5c9a7b2182ae Mon Sep 17 00:00:00 2001 From: Arman Date: Mon, 6 Feb 2023 13:51:59 +0100 Subject: [PATCH 1/2] fix: invalid invite --- src/routes/invite/+page.svelte | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/routes/invite/+page.svelte b/src/routes/invite/+page.svelte index 69614f0a6f..d734930d3b 100644 --- a/src/routes/invite/+page.svelte +++ b/src/routes/invite/+page.svelte @@ -8,6 +8,7 @@ import { page } from '$app/stores'; import { onMount } from 'svelte'; import { trackEvent } from '$lib/actions/analytics'; + import { Alert } from '$lib/components'; let teamId: string, membershipId: string, userId: string, secret: string; let terms = false; @@ -42,10 +43,22 @@ - Invite + + {#if !userId || !secret || !membershipId || !teamId} + Invalid invite + {:else} + Invite + {/if} + {#if !userId || !secret || !membershipId || !teamId} -

Invalid invite link.

+ + We couldn’t find a valid invite + Please ask the project owner to provide you with a new invite to their project + +
+ +
{:else}

You have been invited to join a team project on Appwrite

From bb92e93a93f5901d0f8301bb0390eb3bc73d3720 Mon Sep 17 00:00:00 2001 From: Arman Date: Wed, 8 Feb 2023 15:23:30 +0100 Subject: [PATCH 2/2] fix: copy --- src/routes/invite/+page.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/invite/+page.svelte b/src/routes/invite/+page.svelte index d734930d3b..73c15a9c7f 100644 --- a/src/routes/invite/+page.svelte +++ b/src/routes/invite/+page.svelte @@ -53,8 +53,8 @@ {#if !userId || !secret || !membershipId || !teamId} - We couldn’t find a valid invite - Please ask the project owner to provide you with a new invite to their project + The invite link is not valid + Please ask the project owner to send you a new invite.