Display row action trigger info

This commit is contained in:
Adria Navarro 2024-07-18 16:28:15 +02:00
parent b9443906dc
commit e0d3855945
1 changed files with 10 additions and 0 deletions

View File

@ -14,7 +14,9 @@
notifications,
Label,
AbsTooltip,
InlineAlert,
} from "@budibase/bbui"
import { AutomationTriggerStepId } from "@budibase/types"
import AutomationBlockSetup from "../../SetupPanel/AutomationBlockSetup.svelte"
import CreateWebhookModal from "components/automation/Shared/CreateWebhookModal.svelte"
import ActionModal from "./ActionModal.svelte"
@ -49,6 +51,8 @@
$: isAppAction && setPermissions(role)
$: isAppAction && getPermissions(automationId)
$: isRowAction = block?.stepId === AutomationTriggerStepId.ROW_ACTION
async function setPermissions(role) {
if (!role || !automationId) {
return
@ -183,6 +187,12 @@
{block}
{webhookModal}
/>
{#if isRowAction && isTrigger}
<InlineAlert
header="Automation trigger"
message="This trigger is tied to the row action TODO on your TODO"
/>
{/if}
{#if lastStep}
<Button on:click={() => testDataModal.show()} cta>
Finish and test automation