From b2969c1de1a7bb07e24893cda78703dd3c47ba8f Mon Sep 17 00:00:00 2001 From: David Remer Date: Fri, 16 Sep 2022 07:07:21 +0300 Subject: [PATCH] Render Trigger title differently from usual steps [MAILPOET-4587] --- .../js/src/automation/editor/components/workflow/step.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mailpoet/assets/js/src/automation/editor/components/workflow/step.tsx b/mailpoet/assets/js/src/automation/editor/components/workflow/step.tsx index ca41ac05a0..4e1f0a7e0f 100644 --- a/mailpoet/assets/js/src/automation/editor/components/workflow/step.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/workflow/step.tsx @@ -81,10 +81,14 @@ export function Step({ step, isSelected }: Props): JSX.Element {
- {stepTypeData.title} + {step.type !== 'trigger' + ? stepTypeData.title + : __('Trigger', 'mailpoet')}
- {stepTypeData.subtitle(step)} + {step.type !== 'trigger' + ? stepTypeData.subtitle(step) + : stepTypeData.title}