diff --git a/app/localization/translated/be.json b/app/localization/translated/be.json index bde2e3e584..01ea549dc7 100644 --- a/app/localization/translated/be.json +++ b/app/localization/translated/be.json @@ -84,7 +84,8 @@ "AddFilter.placeholderFilterName": "Увядзіце назву фільтра", "AddIntegrationModal.createGlobalTitle": "Стварыць глабальную інтэграцыю", "AddIntegrationModal.createProjectTitle": "Стварыць праектную інтэграцыю", - "AddIntegrationModal.editAuthTitle": "Змяніць аўтарызацыю", + "AddIntegrationModal.editProjectIntegrationTitle": "Рэдагаваць інтэграцыю праекта", + "AddIntegrationModal.editGlobalIntegrationTitle": "Рэдагаваць глабальную інтэграцыю", "AddNewCaseButton.addNewRuleButton": "Дадаць новае правіла", "AddUserForm.addUserTitle": "Дадаць карыстальніка", "AddUserForm.generatePassword": "Згенераваць пароль", diff --git a/app/localization/translated/ru.json b/app/localization/translated/ru.json index cab96c485c..911eb40c6a 100644 --- a/app/localization/translated/ru.json +++ b/app/localization/translated/ru.json @@ -84,7 +84,8 @@ "AddFilter.placeholderFilterName": "Ввести имя фильтра", "AddIntegrationModal.createGlobalTitle": "Создать глобальную интеграцию", "AddIntegrationModal.createProjectTitle": "Создать проектную интеграцию", - "AddIntegrationModal.editAuthTitle": "Изменить авторизацию", + "AddIntegrationModal.editProjectIntegrationTitle": "Редактировать интеграцию проекта", + "AddIntegrationModal.editGlobalIntegrationTitle": "Редактировать глобальную интеграцию", "AddNewCaseButton.addNewRuleButton": "Добавить новое правило", "AddUserForm.addUserTitle": "Добавить пользователя", "AddUserForm.generatePassword": "Сгенерировать пароль", diff --git a/app/localization/translated/uk.json b/app/localization/translated/uk.json index 869bb8f7a7..c6cc210f1f 100644 --- a/app/localization/translated/uk.json +++ b/app/localization/translated/uk.json @@ -84,7 +84,8 @@ "AddFilter.placeholderFilterName": "Ввести ім’я фільтру", "AddIntegrationModal.createGlobalTitle": "Створити глобальну інтеграцію", "AddIntegrationModal.createProjectTitle": "Створити проектну інтеграцію", - "AddIntegrationModal.editAuthTitle": "Змінити авторизацію", + "AddIntegrationModal.editProjectIntegrationTitle": "Редагувати інтеграцію проекту", + "AddIntegrationModal.editGlobalIntegrationTitle": "Редагувати глобальну інтеграцію", "AddNewCaseButton.addNewRuleButton": "Додати нове правило", "AddUserForm.addUserTitle": "Додати користувача", "AddUserForm.generatePassword": "Згенерувати пароль", diff --git a/app/localization/translated/zh.json b/app/localization/translated/zh.json index 0f74e94fc9..2bd249cc17 100644 --- a/app/localization/translated/zh.json +++ b/app/localization/translated/zh.json @@ -84,7 +84,8 @@ "AddFilter.placeholderFilterName": "请输入过滤器名称", "AddIntegrationModal.createGlobalTitle": "创建全局集成", "AddIntegrationModal.createProjectTitle": "Create Project Integration", - "AddIntegrationModal.editAuthTitle": "编辑授权", + "AddIntegrationModal.editProjectIntegrationTitle": "Edit Project Integration", + "AddIntegrationModal.editGlobalIntegrationTitle": "Edit Global Integration", "AddNewCaseButton.addNewRuleButton": "创建规则", "AddUserForm.addUserTitle": "添加用户", "AddUserForm.generatePassword": "生成密码", diff --git a/app/src/components/integrations/modals/addIntegrationModal/addIntegrationModal.jsx b/app/src/components/integrations/modals/addIntegrationModal/addIntegrationModal.jsx index bd6ec028db..8080b97025 100644 --- a/app/src/components/integrations/modals/addIntegrationModal/addIntegrationModal.jsx +++ b/app/src/components/integrations/modals/addIntegrationModal/addIntegrationModal.jsx @@ -53,9 +53,13 @@ const messages = defineMessages({ id: 'AddIntegrationModal.createGlobalTitle', defaultMessage: 'Create Global Integration', }, - editAuthTitle: { - id: 'AddIntegrationModal.editAuthTitle', - defaultMessage: 'Edit authorization', + editProjectIntegrationTitle: { + id: 'AddIntegrationModal.editProjectIntegrationTitle', + defaultMessage: 'Edit Project Integration', + }, + editGlobalIntegrationTitle: { + id: 'AddIntegrationModal.editGlobalIntegrationTitle', + defaultMessage: 'Edit Global Integration', }, }); @@ -66,7 +70,6 @@ const AddIntegrationModal = ({ data, initialize, change, handleSubmit, dirty }) const { formatMessage } = useIntl(); const { trackEvent } = useTracking(); const { onConfirm, customProps, isGlobal } = data; - const integrationFieldsExtension = fieldsExtensions.find( (ext) => ext.pluginName === data.instanceType, ); @@ -94,6 +97,9 @@ const AddIntegrationModal = ({ data, initialize, change, handleSubmit, dirty }) }; const createTitle = isGlobal ? messages.createGlobalTitle : messages.createProjectTitle; + const editTitle = isGlobal + ? messages.editGlobalIntegrationTitle + : messages.editProjectIntegrationTitle; const FieldsComponent = INTEGRATIONS_FORM_FIELDS_COMPONENTS_MAP[data.instanceType] || @@ -101,7 +107,7 @@ const AddIntegrationModal = ({ data, initialize, change, handleSubmit, dirty }) return ( dispatch(hideModalAction())}