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