diff --git a/frontend/web/components/FeatureRow.js b/frontend/web/components/FeatureRow.js index e3bd3d037aa3..2f56b1c30ace 100644 --- a/frontend/web/components/FeatureRow.js +++ b/frontend/web/components/FeatureRow.js @@ -60,9 +60,7 @@ class TheComponent extends Component { history.replaceState( {}, null, - `${document.location.pathname}?feature=${projectFlag.id}${ - tab ? `&tab=${tab}` : '' - }`, + `${document.location.pathname}?feature=${projectFlag.id}`, ) openModal( `${this.props.permission ? 'Edit Feature' : 'Feature'}: ${ @@ -75,6 +73,7 @@ class TheComponent extends Component { projectFlag={projectFlag} noPermissions={!this.props.permission} environmentFlag={environmentFlag} + tab={tab} flagId={environmentFlag.id} />, 'side-modal create-feature-modal', @@ -222,22 +221,29 @@ class TheComponent extends Component { {!!projectFlag.num_segment_overrides && ( - - - {projectFlag.num_segment_overrides} - - } - place='top' +
{ + e.stopPropagation() + this.editFeature(projectFlag, environmentFlags[id], 1) + }} > - {`${projectFlag.num_segment_overrides} Segment Override${ - projectFlag.num_segment_overrides !== 1 ? 's' : '' - }`} - + + + {projectFlag.num_segment_overrides} + + } + place='top' + > + {`${projectFlag.num_segment_overrides} Segment Override${ + projectFlag.num_segment_overrides !== 1 ? 's' : '' + }`} + +
)} {!!projectFlag.num_identity_overrides && (