+
+
+
+
+
+ Please verify your account. We've sent the verification link to {user.email}
+
+
+
+
+
+{/if}
+
+
diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
index 792777349c..6d9e96a564 100644
--- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
+++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/ButtonActionEditor.svelte
@@ -3,7 +3,6 @@
import { createEventDispatcher } from "svelte"
import { notifications } from "@budibase/bbui"
import ButtonActionDrawer from "./ButtonActionDrawer.svelte"
- import { automationStore } from "builderStore"
import { cloneDeep } from "lodash/fp"
const dispatch = createEventDispatcher()
@@ -24,47 +23,11 @@
}
const saveEventData = async () => {
- // any automations that need created from event triggers
- const automationsToCreate = tmpValue.filter(
- action => action["##eventHandlerType"] === "Trigger Automation"
- )
- for (let action of automationsToCreate) {
- await createAutomation(action.parameters)
- }
-
dispatch("change", tmpValue)
notifications.success("Component actions saved.")
drawer.hide()
}
- // called by the parent modal when actions are saved
- const createAutomation = async parameters => {
- if (parameters.automationId || !parameters.newAutomationName) {
- return
- }
- try {
- let trigger = automationStore.actions.constructBlock(
- "TRIGGER",
- "APP",
- $automationStore.blockDefinitions.TRIGGER.APP
- )
- trigger.inputs = {
- fields: Object.keys(parameters.fields ?? {}).reduce((fields, key) => {
- fields[key] = "string"
- return fields
- }, {}),
- }
- const automation = await automationStore.actions.create(
- parameters.newAutomationName,
- trigger
- )
- parameters.automationId = automation._id
- delete parameters.newAutomationName
- } catch (error) {
- notifications.error("Error creating automation")
- }
- }
-
$: actionCount = value?.length
$: actionText = `${actionCount || "No"} action${
actionCount !== 1 ? "s" : ""
diff --git a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ScrollTo.svelte b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ScrollTo.svelte
index 2198a87ecb..49a93d71dd 100644
--- a/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ScrollTo.svelte
+++ b/packages/builder/src/components/design/settings/controls/ButtonActionEditor/actions/ScrollTo.svelte
@@ -1,6 +1,5 @@