Lint fix and now diplaying the '/app/' prefix when previewing an app url
This commit is contained in:
parent
af19b41c2d
commit
7e3a0046bd
|
@ -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}
|
||||
<div class="app-server" title={appUrl}>
|
||||
{`${window.location.origin}${$values.url}`}
|
||||
{appUrl}
|
||||
</div>
|
||||
{/if}
|
||||
</span>
|
||||
|
|
|
@ -71,7 +71,9 @@
|
|||
<Heading size="S">Users</Heading>
|
||||
<ButtonGroup>
|
||||
<Button disabled secondary>Import users</Button>
|
||||
<Button primary dataCy="add-user" on:click={createUserModal.show}>Add user</Button>
|
||||
<Button primary dataCy="add-user" on:click={createUserModal.show}
|
||||
>Add user</Button
|
||||
>
|
||||
</ButtonGroup>
|
||||
</div>
|
||||
<div class="field">
|
||||
|
|
Loading…
Reference in New Issue