Skip to content

Commit

Permalink
Correct split text action
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Apr 27, 2024
1 parent 72a91b5 commit f3a260c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/actions/split-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ export default {
background: '#ffc200',
icon: 'icon-text_alignleft',
render: (container: HTMLElement, params: SplitTextParameters) => {
return renderActionHeader(actions['text.split'],
let split: HTMLElement[] = [
renderValue(params['text'], 'Text List'),
actionText('by'),
renderValue(params['WFTextSeparator'] ?? null, 'Separator'),
renderValue(params['WFTextCustomSeparator'] ?? null, 'Custom Separator'),
);
renderValue(params['WFTextSeparator'] ?? 'New Lines', 'Separator')
];

if (params['WFTextSeparator'] === 'Custom') {
split.push(renderValue(params['WFTextCustomSeparator'], 'Custom Separator'));
}


return renderActionHeader(actions['text.split'], ...split);
}
}

0 comments on commit f3a260c

Please sign in to comment.