From 32dd67a4e6b612f4961318f1e03be41b7df193db Mon Sep 17 00:00:00 2001 From: Siarhei Iukou Date: Thu, 19 Dec 2024 12:12:49 +0300 Subject: [PATCH] EPMRPP-97895 || Add validation on entered URL --- ui/src/components/{constans.js => constants.js} | 0 .../integrationFormFields/integrationFormFields.jsx | 6 +++--- .../components/integrationSettings/integrationSettings.jsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename ui/src/components/{constans.js => constants.js} (100%) diff --git a/ui/src/components/constans.js b/ui/src/components/constants.js similarity index 100% rename from ui/src/components/constans.js rename to ui/src/components/constants.js diff --git a/ui/src/components/integrationFormFields/integrationFormFields.jsx b/ui/src/components/integrationFormFields/integrationFormFields.jsx index e54f4ae..0d4566d 100644 --- a/ui/src/components/integrationFormFields/integrationFormFields.jsx +++ b/ui/src/components/integrationFormFields/integrationFormFields.jsx @@ -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; @@ -33,7 +33,7 @@ export const IntegrationFormFields = (props) => { { const { data, goToPreviousPage, onUpdate, isGlobal, ...extensionProps } = props;