From 7e3a0046bdc331644a2cb07d05cd6ea954f9e6ee Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 29 Mar 2022 09:59:39 +0100 Subject: [PATCH] Lint fix and now diplaying the '/app/' prefix when previewing an app url --- .../builder/src/components/start/CreateAppModal.svelte | 8 ++++++-- .../src/pages/builder/portal/manage/users/index.svelte | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index 623e30e73b..e75d7c4d09 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -25,8 +25,12 @@ await setupValidation() }) + const appPrefix = "/app" + $: appUrl = `${window.location.origin}${ - $values.url ? $values.url : `${resolveAppUrl(template, $values.name)}` + $values.url + ? `${appPrefix}${$values.url}` + : `${appPrefix}${resolveAppUrl(template, $values.name)}` }` const resolveAppUrl = (template, name) => { @@ -161,7 +165,7 @@ /> {#if $values.url && $values.url !== "" && !$validation.errors.url}
- {`${window.location.origin}${$values.url}`} + {appUrl}
{/if} diff --git a/packages/builder/src/pages/builder/portal/manage/users/index.svelte b/packages/builder/src/pages/builder/portal/manage/users/index.svelte index 4492a81e3e..bfbe520b2f 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/index.svelte @@ -71,7 +71,9 @@ Users - +