Skip to content

Commit

Permalink
EPMRPP-97895 || Add validation on entered URL
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazarQSO committed Dec 19, 2024
1 parent d07dabd commit 32dd67a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React, { useEffect } from 'react';
import { LABELS } from '../constans';
import { LABELS } from '../constants';

export const IntegrationFormFields = (props) => {
const { initialize, disabled, initialData, updateMetaData, ...extensionProps } = props;
const {
components: { FieldErrorHint, FieldElement, FieldText, FieldTextFlex },
validators: { requiredField, btsUrl, btsProjectKey, btsIntegrationName, email },
validators: { requiredField, btsJiraCloudUrl, btsProjectKey, btsIntegrationName, email },
constants: { SECRET_FIELDS_KEY },
} = extensionProps;

Expand Down Expand Up @@ -33,7 +33,7 @@ export const IntegrationFormFields = (props) => {
<FieldElement
name="url"
label={LABELS.URL}
validate={btsUrl}
validate={btsJiraCloudUrl}
disabled={disabled}
isRequired
dataAutomationId="linkToBTSField"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useDispatch } from 'react-redux';
import { LABELS } from '../constans';
import { LABELS } from '../constants';

export const IntegrationSettings = (props) => {
const { data, goToPreviousPage, onUpdate, isGlobal, ...extensionProps } = props;
Expand Down

0 comments on commit 32dd67a

Please sign in to comment.