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