Update settings modal

This commit is contained in:
Andrew Kingston 2021-04-20 12:55:23 +01:00
parent e41c6e33e0
commit 864366336a
4 changed files with 11 additions and 22 deletions

View File

@ -36,9 +36,7 @@
<div class="container"> <div class="container">
<Input <Input
on:save={e => updateKey(['budibase', e.detail])} on:change={e => updateKey(['budibase', e.detail])}
thin
edit
value={keys.budibase} value={keys.budibase}
label="Budibase Cloud API Key" /> label="Budibase Cloud API Key" />
<Link primary href="https://portal.budi.live"> <Link primary href="https://portal.budi.live">

View File

@ -23,16 +23,13 @@
app. app.
</Body> </Body>
<Input <Input
on:change={e => (value = e.target.value)} on:change={e => (value = e.detail)}
on:input={e => (value = e.target.value)}
thin
disabled={loading} disabled={loading}
placeholder="" /> placeholder="" />
<div class="buttons"> <div class="buttons">
<Button <Button
primary warning
disabled={value !== 'DELETE' || loading} disabled={value !== 'DELETE' || loading}
red
on:click={deleteApp}> on:click={deleteApp}>
Delete Entire App Delete Entire App
</Button> </Button>

View File

@ -80,25 +80,19 @@
<div class="container"> <div class="container">
<Input <Input
on:save={e => updateApplication({ name: e.detail })} on:change={e => updateApplication({ name: e.detail })}
thin value={$store.name}
edit error={nameError}
bind:value={$store.name}
bind:error={nameError}
label="App Name" /> label="App Name" />
{#if $hostingStore.hostingInfo.type === 'self'} {#if $hostingStore.hostingInfo.type === 'self'}
<Input <Input
on:save={e => updateApplication({ url: e.detail })} on:change={e => updateApplication({ url: e.detail })}
thin value={$store.url}
edit error={urlError}
bind:value={$store.url}
bind:error={urlError}
label="App URL" /> label="App URL" />
{/if} {/if}
<TextArea <TextArea
on:save={e => updateApplication({ description: e.detail })} on:change={e => updateApplication({ description: e.detail })}
thin
edit
value={$store.description} value={$store.description}
label="App Description" /> label="App Description" />
</div> </div>

View File

@ -11,7 +11,7 @@
(!$automationStore.selectedAutomation || (!$automationStore.selectedAutomation ||
!$automationStore.selectedAutomation?.automation?._id) !$automationStore.selectedAutomation?.automation?._id)
) { ) {
$goto(`../${$automationStore.automations[0]._id}`) $goto(`./${$automationStore.automations[0]._id}`)
} }
}) })
</script> </script>