From 58f59c88b0f3592ab898f3a24480e032c3f8fad7 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 6205d16dd25dafcb76b37f4845ce62206495fae0 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()