diff --git a/frontend/src/scenes/actions/ActionStep.js b/frontend/src/scenes/actions/ActionStep.js
index f3050d9811684..6f33228110f4f 100644
--- a/frontend/src/scenes/actions/ActionStep.js
+++ b/frontend/src/scenes/actions/ActionStep.js
@@ -20,13 +20,12 @@ let getSafeText = (el) => {
}
export class ActionStep extends Component {
- isUrlChecked = (step) => {
- return step?.selection?.indexOf('url') !== -1
- }
+ isUrlChecked = (step) => step?.selection?.indexOf('url') !== -1
ckbContainer = {
display: 'flex',
minHeight: '31px',
alignItems: 'center',
+ marginBottom: '8px',
}
constructor(props) {
super(props)
@@ -146,34 +145,39 @@ export class ActionStep extends Component {
{selectorError ? 'Invalid selector' : `Matches ${matches} elements`}
)}
-
+
+
+ {this.isUrlChecked(this.props.step) && props.extra_options}
+
{props.item === 'selector' ? (
) : (
-
+ ((props.item === 'url' && this.isUrlChecked(this.props.step)) || props.item !== 'url') && (
+
+ )
)}
)
@@ -272,19 +276,26 @@ export class ActionStep extends Component {
extra_options={}
label="URL"
/>
- {step?.url_matching && step.url_matching in URL_MATCHING_HINTS && (
- {URL_MATCHING_HINTS[step.url_matching]}
- )}
+ {this.isUrlChecked(step) && }
)
}
+
+ URLMatchingHints = ({ step }) => {
+ return (
+ step?.url_matching &&
+ step.url_matching in URL_MATCHING_HINTS && (
+ {URL_MATCHING_HINTS[step.url_matching]}
+ )
+ )
+ }
+
URLMatching = ({ step, isEditor }) => {
return (
}
label="URL"
/>
- {step.url_matching && step.url_matching in URL_MATCHING_HINTS && (
-
- {URL_MATCHING_HINTS[step.url_matching]}
-
- )}
+ {this.isUrlChecked(step) && }
)}
{!isEditor && (