Linting.
This commit is contained in:
parent
cc19e2e582
commit
a6c4e7fd04
|
@ -20,7 +20,9 @@ const automationActions = store => ({
|
|||
}
|
||||
// if previously selected find the new obj and select it
|
||||
if (selected) {
|
||||
selected = jsonResponses[0].filter(automation => automation._id === selected._id)
|
||||
selected = jsonResponses[0].filter(
|
||||
automation => automation._id === selected._id
|
||||
)
|
||||
state.selectedAutomation = new Automation(selected[0])
|
||||
}
|
||||
return state
|
||||
|
|
|
@ -52,18 +52,17 @@
|
|||
confirmText="Finished"
|
||||
cancelText="Skip"
|
||||
disabled={!valid}>
|
||||
<p class="webhook-exp">To configure a webhook we need to create a schema for your webhook to validate against.
|
||||
Use the URL shown below and send a <b>POST</b> request to it with a JSON body in the format that
|
||||
your webhook should use!</p>
|
||||
<WebhookDisplay value={schemaURL}/>
|
||||
<p class="webhook-exp">
|
||||
To configure a webhook we need to create a schema for your webhook to
|
||||
validate against. Use the URL shown below and send a
|
||||
<b>POST</b>
|
||||
request to it with a JSON body in the format that your webhook should use!
|
||||
</p>
|
||||
<WebhookDisplay value={schemaURL} />
|
||||
<h5>Schema</h5>
|
||||
<code>
|
||||
{schema}
|
||||
</code>
|
||||
<code> {schema} </code>
|
||||
<div slot="footer">
|
||||
<a
|
||||
target="_blank"
|
||||
href="https://docs.budibase.com/automate/steps/triggers">
|
||||
<a target="_blank" href="https://docs.budibase.com/automate/steps/triggers">
|
||||
<i class="ri-information-line" />
|
||||
<span>Learn about webhooks</span>
|
||||
</a>
|
||||
|
|
|
@ -20,14 +20,9 @@
|
|||
</script>
|
||||
|
||||
<div class="copy-area">
|
||||
<Input
|
||||
disabled="true"
|
||||
thin
|
||||
value={fullWebhookURL(value)}/>
|
||||
<span
|
||||
class="copy-btn"
|
||||
on:click={() => copyToClipboard()}>
|
||||
<i class="ri-clipboard-line copy-icon" />
|
||||
<Input disabled="true" thin value={fullWebhookURL(value)} />
|
||||
<span class="copy-btn" on:click={() => copyToClipboard()}>
|
||||
<i class="ri-clipboard-line copy-icon" />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
{:else if value.customType === 'row'}
|
||||
<RowSelector bind:value={block.inputs[key]} {bindings} />
|
||||
{:else if value.customType === 'webhookUrl'}
|
||||
<WebhookDisplay value={block.inputs[key]}/>
|
||||
<WebhookDisplay value={block.inputs[key]} />
|
||||
{:else if value.type === 'string' || value.type === 'number'}
|
||||
<BindableInput
|
||||
type="string"
|
||||
|
|
Loading…
Reference in New Issue