Skip to content

Commit

Permalink
EPMRPP-75419 || feature was implemented for test steps
Browse files Browse the repository at this point in the history
  • Loading branch information
tr1ble committed Mar 31, 2022
1 parent 8951bcf commit 4336d05
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export class TestItemDetailsModal extends Component {
getTrackingData: PropTypes.func,
}).isRequired,
clearLogPageStackTrace: PropTypes.func,
invalid: PropTypes.bool.isRequired,
};

static defaultProps = {
Expand Down Expand Up @@ -330,7 +331,10 @@ export class TestItemDetailsModal extends Component {
okButton={editable ? okButton : undefined}
cancelButton={cancelButton}
closeConfirmation={editable ? this.getCloseConfirmationConfig() : undefined}
warningMessage={editable ? intl.formatMessage(messages.launchWarning) : ''}
warningMessage={
(this.props.invalid && intl.formatMessage(COMMON_LOCALE_KEYS.changesWarning)) ||
(editable ? intl.formatMessage(messages.launchWarning) : '')
}
contentClassName={cx('tab-container')}
closeIconEventInfo={eventsInfo.closeIcon}
>
Expand Down

0 comments on commit 4336d05

Please sign in to comment.