Add return URL setting to log out button action
This commit is contained in:
parent
8a6a84c376
commit
5b3b1d82d4
|
@ -1,13 +1,38 @@
|
||||||
<script>
|
<script>
|
||||||
import { Body } from "@budibase/bbui"
|
import { Label, Body, Layout } from "@budibase/bbui"
|
||||||
|
import DrawerBindableInput from "components/common/bindings/DrawerBindableInput.svelte"
|
||||||
|
|
||||||
|
export let parameters
|
||||||
|
export let bindings = []
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="root">
|
<div class="root">
|
||||||
<Body size="S">This action doesn't require any additional settings.</Body>
|
<Layout noPadding gap="M">
|
||||||
|
<Body size="S">
|
||||||
|
Please enter what URL you would like to be redirected to after logging
|
||||||
|
out. If you dont' enter a value, you'll be redirected to the login screen.
|
||||||
|
</Body>
|
||||||
|
<div class="content">
|
||||||
|
<Label small>Return URL</Label>
|
||||||
|
<DrawerBindableInput
|
||||||
|
title="Return URL"
|
||||||
|
value={parameters.returnUrl}
|
||||||
|
on:change={value => (parameters.returnUrl = value.detail)}
|
||||||
|
{bindings}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Layout>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.root {
|
.root {
|
||||||
|
max-width: 400px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
.content {
|
||||||
|
display: grid;
|
||||||
|
align-items: center;
|
||||||
|
gap: var(--spacing-m);
|
||||||
|
grid-template-columns: auto 1fr;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue