Browse Source
Merge pull request #327 from Budibase/fix-email
fix backend workflow
pull/330/head
Martin McKeaveney
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
5 additions and
8 deletions
-
packages/builder/src/components/userInterface/EventsEditor/EventsEditor.svelte
-
packages/server/src/events/index.js
-
packages/server/src/events/workflow.js
-
packages/standard-components/src/List.svelte
|
|
|
@ -64,8 +64,8 @@ |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<button class="newevent" on:click={() => openModal()} > |
|
|
|
<i class="icon ri-add-circle-fill" /> |
|
|
|
<button class="newevent" on:click={() => openModal()}> |
|
|
|
<i class="icon ri-add-circle-fill" /> |
|
|
|
Create New Event |
|
|
|
</button> |
|
|
|
|
|
|
|
@ -86,7 +86,6 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<style> |
|
|
|
|
|
|
|
.root { |
|
|
|
font-size: 10pt; |
|
|
|
width: 100%; |
|
|
|
|
|
|
|
@ -22,7 +22,7 @@ async function executeRelevantWorkflows(event, eventType) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emitter.on("action", async function(event) { |
|
|
|
emitter.on("record:save", async function(event) { |
|
|
|
await executeRelevantWorkflows(event, "record:save") |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
@ -40,7 +40,7 @@ exports.serverStrategy = () => ({ |
|
|
|
if (block.type === "CLIENT") continue |
|
|
|
|
|
|
|
const action = require(`../api/controllers/workflow/actions/${block.actionId}`) |
|
|
|
const response = await action(this.bindContextArgs(block.args)) |
|
|
|
const response = await action({ args: this.bindContextArgs(block.args) }) |
|
|
|
|
|
|
|
this.context = { |
|
|
|
...this.context, |
|
|
|
|
|
|
|
@ -25,7 +25,6 @@ |
|
|
|
} else { |
|
|
|
throw new Error("Failed to fetch records.", response) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$: if (model) fetchData() |
|
|
|
@ -36,8 +35,7 @@ |
|
|
|
</script> |
|
|
|
|
|
|
|
<section class:grid={layout === 'grid'} class:list={layout === 'list'}> |
|
|
|
<div class="data-card" bind:this={target}> |
|
|
|
</div> |
|
|
|
<div class="data-card" bind:this={target} /> |
|
|
|
</section> |
|
|
|
|
|
|
|
<style> |
|
|
|
|