mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
text updates
This commit is contained in:
1 parent
784a7896a8
commit
f3438d52a9
1 file changed
+10
-3
@@ -6,9 +6,16 @@
|
||||
$: message = $page.url.searchParams.get('message');
|
||||
$: code = parseInt($page.url.searchParams.get('code'));
|
||||
|
||||
const getErrorTitle = () => {
|
||||
if (code == 403) {
|
||||
return "It looks like you're not currently eligible for the GitHub Student Developer Pack.";
|
||||
}
|
||||
return message;
|
||||
};
|
||||
|
||||
const getErrorExplanation = () => {
|
||||
if (code === 403) {
|
||||
return 'You are not eligible for the education program.';
|
||||
return 'You can still sign in and explore Appwrite.';
|
||||
} else if (code === 409) {
|
||||
return "You've already registered for the education program.";
|
||||
}
|
||||
@@ -17,14 +24,14 @@
|
||||
</script>
|
||||
|
||||
<div class="content">
|
||||
<h1>{message}</h1>
|
||||
<h1>{getErrorTitle()}</h1>
|
||||
<p>{getErrorExplanation()}</p>
|
||||
<Button
|
||||
fullWidth
|
||||
on:click={() => {
|
||||
location.href = `${base}/login`;
|
||||
}}>
|
||||
<span class="text">Go to standard login page</span>
|
||||
<span class="text">Go to sign in</span>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user