1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00

Update builder settings modal to use spectrum components

This commit is contained in:
Andrew Kingston 2021-04-20 10:26:20 +01:00
parent 1bc678ad9e
commit 69e519c460

View file

@ -30,7 +30,7 @@
}
function updateSelfHosting(event) {
if (hostingInfo.type === HostingTypes.CLOUD && event.target.checked) {
if (hostingInfo.type === HostingTypes.CLOUD && event.detail) {
hostingInfo.hostingUrl = "localhost:10000"
hostingInfo.useHttps = false
hostingInfo.selfHostKey = "budibase"
@ -60,14 +60,13 @@
apps made in this builder.
</p>
<Toggle
thin
text="Self hosted"
on:change={updateSelfHosting}
bind:checked={selfhosted} />
bind:value={selfhosted} />
{#if selfhosted}
<Input bind:value={hostingInfo.hostingUrl} label="Hosting URL" />
<Input bind:value={hostingInfo.selfHostKey} label="Hosting Key" />
<Toggle thin text="HTTPS" bind:checked={hostingInfo.useHttps} />
<Toggle text="HTTPS" bind:value={hostingInfo.useHttps} />
{/if}
<h5>Analytics</h5>
<p>
@ -75,9 +74,8 @@
please let us know below.
</p>
<Toggle
thin
text="Send Analytics To Budibase"
checked={!analyticsDisabled}
value={!analyticsDisabled}
on:change={toggleAnalytics} />
</ModalContent>