Linting.
This commit is contained in:
parent
41fd10dbbe
commit
d7196cfd3a
|
@ -78,7 +78,7 @@
|
|||
{/if}
|
||||
</div>
|
||||
{/each}
|
||||
{#if stepId === "WEBHOOK"}
|
||||
{#if stepId === 'WEBHOOK'}
|
||||
<Button wide secondary on:click={() => webhookModal.show()}>
|
||||
Setup webhook
|
||||
</Button>
|
||||
|
|
|
@ -62,7 +62,9 @@
|
|||
</header>
|
||||
<div class="content">
|
||||
{#if $automationStore.selectedBlock}
|
||||
<AutomationBlockSetup bind:block={$automationStore.selectedBlock} webhookModal={webhookModal} />
|
||||
<AutomationBlockSetup
|
||||
bind:block={$automationStore.selectedBlock}
|
||||
{webhookModal} />
|
||||
{:else if $automationStore.selectedAutomation}
|
||||
<div class="block-label">Automation <b>{automation.name}</b></div>
|
||||
<Button secondary wide on:click={testAutomation}>Test Automation</Button>
|
||||
|
|
|
@ -48,13 +48,19 @@
|
|||
cancelText="Skip">
|
||||
<p>
|
||||
Webhooks are for receiving data. To make them easier please use the URL
|
||||
shown below and send a <code>POST</code> request to it from your other application.
|
||||
If you're unable to do this now then you can skip this step, however we
|
||||
will not be able to configure bindings for your later actions!
|
||||
shown below and send a
|
||||
<code>POST</code>
|
||||
request to it from your other application. If you're unable to do this now
|
||||
then you can skip this step, however we will not be able to configure
|
||||
bindings for your later actions!
|
||||
</p>
|
||||
<WebhookDisplay value={schemaURL} />
|
||||
{#if finished}
|
||||
<p class="finished-text">Request received! We found {propCount} bindable value{propCount > 1 ? "s" : ""}.</p>
|
||||
<p class="finished-text">
|
||||
Request received! We found
|
||||
{propCount}
|
||||
bindable value{propCount > 1 ? 's' : ''}.
|
||||
</p>
|
||||
{/if}
|
||||
<div slot="footer">
|
||||
<a target="_blank" href="https://docs.budibase.com/automate/steps/triggers">
|
||||
|
|
|
@ -13,18 +13,18 @@
|
|||
webhookUrls = automations.map(automation => {
|
||||
const trigger = automation.definition.trigger
|
||||
if (trigger?.stepId === "WEBHOOK" && trigger.inputs) {
|
||||
return {type: "Automation", name: automation.name, url: trigger.inputs.triggerUrl}
|
||||
return {
|
||||
type: "Automation",
|
||||
name: automation.name,
|
||||
url: trigger.inputs.triggerUrl,
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<ModalContent
|
||||
title="Webhook Endpoints"
|
||||
confirmText="Done">
|
||||
<p>
|
||||
See below the list of deployed webhook URLs.
|
||||
</p>
|
||||
<ModalContent title="Webhook Endpoints" confirmText="Done">
|
||||
<p>See below the list of deployed webhook URLs.</p>
|
||||
{#each webhookUrls as webhookUrl}
|
||||
<div>
|
||||
<h5>{webhookUrl.type} - {webhookUrl.name}</h5>
|
||||
|
|
|
@ -58,9 +58,7 @@
|
|||
<a target="_blank" href={`https://${appId}.app.budi.live/${appId}`}>
|
||||
View Your Deployed App →
|
||||
</a>
|
||||
<Button primary on:click={() => modal.show()}>
|
||||
View webhooks
|
||||
</Button>
|
||||
<Button primary on:click={() => modal.show()}>View webhooks</Button>
|
||||
</div>
|
||||
</header>
|
||||
<div class="deployment-list">
|
||||
|
|
Loading…
Reference in New Issue