Skip to content

Commit

Permalink
EPMRPP-97895 || Code Review fix - 1
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed Dec 19, 2024
1 parent 3cf2aab commit a1429c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/common/utils/validation/commonValidators.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const descriptionEntity = bindMessageToValidator(
'descriptionEntityHint',
);

export const btsJiraUrl = bindMessageToValidator(validate.jiraUrl, 'btsUrlHint');
export const btsUrl = bindMessageToValidator(validate.url, 'btsUrlHint');
export const btsJiraCloudUrl = bindMessageToValidator(validate.jiraUrl, 'btsUrlHint');
export const btsRallyUrl = bindMessageToValidator(validate.rallyUrl, 'btsUrlHint');
export const btsIntegrationName = bindMessageToValidator(
validate.btsIntegrationName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class JiraConnectionFormFields extends Component {
<FieldElement
name="url"
label={formatMessage(COMMON_BTS_MESSAGES.linkToBtsLabel)}
validate={commonValidators.btsJiraUrl}
validate={commonValidators.btsUrl}
disabled={disabled || editAuthMode}
className={cx('fields')}
isRequired
Expand Down
2 changes: 2 additions & 0 deletions app/src/controllers/plugins/uiExtensions/createImportProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ import { attributesArray, isNotEmptyArray } from 'common/utils/validation/valida
import {
requiredField,
btsUrl,
btsJiraCloudUrl,
btsProjectKey,
btsIntegrationName,
email,
Expand Down Expand Up @@ -390,6 +391,7 @@ export const createImportProps = (pluginName) => ({
isNotEmptyArray,
requiredField,
btsUrl,
btsJiraCloudUrl,
btsProjectKey,
btsProjectId,
btsBoardId,
Expand Down

0 comments on commit a1429c0

Please sign in to comment.