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">
<Input
on:save={e => updateKey(['budibase', e.detail])}
thin
edit
on:change={e => updateKey(['budibase', e.detail])}
value={keys.budibase}
label="Budibase Cloud API Key" />
<Link primary href="https://portal.budi.live">

View File

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

View File

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

View File

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