From 52429314096d8e268d4e2b428b110315cb61bf2f Mon Sep 17 00:00:00 2001
From: FlaminWrap <97764630+FlaminWrap@users.noreply.github.com>
Date: Wed, 10 Aug 2022 23:04:52 +0000
Subject: [PATCH 1/2] Fix issue #4290
* Fixes issue #4290
* Changed the title from 'Accept Invitation' to 'Invitation to organistaion / Budibase'
* Changed the 'Please enter a password to set up your user.' to 'Please enter a password to get started.'
* Increased width to 300px to allow longer org names
---
.../src/pages/builder/invite/index.svelte | 23 ++++++++++++++-----
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/packages/builder/src/pages/builder/invite/index.svelte b/packages/builder/src/pages/builder/invite/index.svelte
index 8ac35de07f..2b9e9592f1 100644
--- a/packages/builder/src/pages/builder/invite/index.svelte
+++ b/packages/builder/src/pages/builder/invite/index.svelte
@@ -1,13 +1,16 @@
-
+
- Accept Invitation
+ Invitation to {company}
- Please enter a password to set up your user.
+ Please enter a password to get started.
@@ -46,7 +57,7 @@
}
.container {
margin: 0 auto;
- width: 260px;
+ width: 300px;
display: flex;
flex-direction: column;
justify-content: flex-start;
From b166e155fafe78b4ee81426f77d5796e9c109982 Mon Sep 17 00:00:00 2001
From: FlaminWrap <97764630+FlaminWrap@users.noreply.github.com>
Date: Thu, 11 Aug 2022 20:05:06 +0000
Subject: [PATCH 2/2] Update index.svelte
---
packages/builder/src/pages/builder/invite/index.svelte | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/packages/builder/src/pages/builder/invite/index.svelte b/packages/builder/src/pages/builder/invite/index.svelte
index 2b9e9592f1..ffc2b09e85 100644
--- a/packages/builder/src/pages/builder/invite/index.svelte
+++ b/packages/builder/src/pages/builder/invite/index.svelte
@@ -8,9 +8,9 @@
const inviteCode = $params["?code"]
let password, error
-
+
$: company = $organisation.company || "Budibase"
-
+
async function acceptInvite() {
try {
await users.acceptInvite(inviteCode, password)
@@ -20,7 +20,7 @@
notifications.error(error.message)
}
}
-
+
onMount(async () => {
try {
await organisation.init()