You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/trigger-warning-dialog/trigger-warning-dialog.tsx
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ import {
11
11
exportenumTriggerWarningType{
12
12
DUPLICATE_TRIGGER='duplicate_trigger',
13
13
LEGACY_INCOMPATIBILITY='legacy_incompatibility',
14
+
TRIGGER_IN_SUBFLOW='trigger_in_subflow',
14
15
}
15
16
16
17
interfaceTriggerWarningDialogProps{
@@ -32,6 +33,8 @@ export function TriggerWarningDialog({
32
33
return'Cannot mix trigger types'
33
34
caseTriggerWarningType.DUPLICATE_TRIGGER:
34
35
return`Only one ${triggerName} trigger allowed`
36
+
caseTriggerWarningType.TRIGGER_IN_SUBFLOW:
37
+
return'Triggers not allowed in subflows'
35
38
}
36
39
}
37
40
@@ -41,6 +44,8 @@ export function TriggerWarningDialog({
41
44
return'Cannot add new trigger blocks when a legacy Start block exists. Available in newer workflows.'
42
45
caseTriggerWarningType.DUPLICATE_TRIGGER:
43
46
return`A workflow can only have one ${triggerName} trigger block. Please remove the existing one before adding a new one.`
47
+
caseTriggerWarningType.TRIGGER_IN_SUBFLOW:
48
+
return'Triggers cannot be placed inside loop or parallel subflows.'
0 commit comments