[IF/ELSE] Capitalize branch titles + remove ending separator (#17009)
Before : if - else if not capitalized, ending separator) <img width="496" height="451" alt="Capture d’écran 2026-01-08 à 11 17 29" src="https://github.com/user-attachments/assets/621e92f3-02ed-4e71-9893-576543922871" /> After <img width="496" height="431" alt="Capture d’écran 2026-01-08 à 11 17 14" src="https://github.com/user-attachments/assets/549c146c-00b0-4162-b395-ceb05baf34b1" />
This commit is contained in:
-1
@@ -276,7 +276,6 @@ export const WorkflowEditActionIfElseBody = ({
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
{isElse && <HorizontalSeparator noMargin />}
|
||||
<WorkflowIfElseBranchEditor
|
||||
action={action}
|
||||
branch={branch}
|
||||
|
||||
+4
-2
@@ -9,7 +9,7 @@ import { isStepFilterGroupChildAStepFilterGroup } from '@/workflow/workflow-step
|
||||
import styled from '@emotion/styled';
|
||||
import { i18n, type MessageDescriptor } from '@lingui/core';
|
||||
import { type StepFilterGroup } from 'twenty-shared/types';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { capitalize, isDefined } from 'twenty-shared/utils';
|
||||
import { type StepIfElseBranch } from 'twenty-shared/workflow';
|
||||
|
||||
const StyledBranchContainer = styled.div`
|
||||
@@ -85,7 +85,9 @@ export const WorkflowIfElseBranchEditor = ({
|
||||
stepFilter={stepFilterGroupChild}
|
||||
stepFilterIndex={stepFilterGroupChildIndex}
|
||||
isIfBranch={isIfBranch}
|
||||
firstFilterLabel={i18n._(branchLabel)}
|
||||
firstFilterLabel={capitalize(
|
||||
i18n._(branchLabel).toLowerCase(),
|
||||
)}
|
||||
/>
|
||||
),
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user