You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by mi...@apache.org on 2024/01/12 07:10:08 UTC

(incubator-devlake) branch fix-jira-test-connection created (now f9141ac77)

This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a change to branch fix-jira-test-connection
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


      at f9141ac77 fix(config-ui): jira edit cannot test connection

This branch includes the following new commits:

     new f9141ac77 fix(config-ui): jira edit cannot test connection

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(incubator-devlake) 01/01: fix(config-ui): jira edit cannot test connection

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mintsweet pushed a commit to branch fix-jira-test-connection
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit f9141ac77a559f51a993dee7551fc2fd4a6a8384
Author: mintsweet <0x...@gmail.com>
AuthorDate: Fri Jan 12 20:09:56 2024 +1300

    fix(config-ui): jira edit cannot test connection
---
 config-ui/src/plugins/register/jira/connection-fields/auth.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/config-ui/src/plugins/register/jira/connection-fields/auth.tsx b/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
index fb3b63cf2..b395b7d55 100644
--- a/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
+++ b/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
@@ -64,7 +64,8 @@ export const Auth = ({ type, initialValues, values, setValues, setErrors }: Prop
   useEffect(() => {
     const required =
       (values.authMethod === 'BasicAuth' && values.username && values.password) ||
-      (values.authMethod === 'AccessToken' && values.token);
+      (values.authMethod === 'AccessToken' && values.token) ||
+      type === 'update';
     setErrors({
       endpoint: !values.endpoint ? 'endpoint is required' : '',
       auth: required ? '' : 'auth is required',