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

abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 91848cd64 fix: reset password component in plugin connection (#7606)
91848cd64 is described below

commit 91848cd642dac71a14db6bcd6d430ddae6debbac
Author: 青湛 <[email protected]>
AuthorDate: Tue Jun 11 15:32:05 2024 +1200

    fix: reset password component in plugin connection (#7606)
---
 .../components/connection-form/fields/secret-key.tsx  | 19 +------------------
 .../components/connection-form/fields/token.tsx       |  2 +-
 .../register/github/connection-fields/token.tsx       |  2 +-
 .../plugins/register/jira/connection-fields/auth.tsx  |  4 ++--
 4 files changed, 5 insertions(+), 22 deletions(-)

diff --git 
a/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx 
b/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx
index 64134f28d..4bfafb92d 100644
--- a/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx
+++ b/config-ui/src/plugins/components/connection-form/fields/secret-key.tsx
@@ -15,23 +15,6 @@
  * limitations under the License.
  *
  */
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
 
 import { useEffect } from 'react';
 import { Input } from 'antd';
@@ -75,7 +58,7 @@ export const ConnectionSecretKey = ({
 
   return (
     <Block title={label ?? 'SecretKey'} description={subLabel ? subLabel : 
null} required>
-      <Input
+      <Input.Password
         style={{ width: 386 }}
         placeholder={placeholder ?? 'Your SecretKey'}
         value={value}
diff --git a/config-ui/src/plugins/components/connection-form/fields/token.tsx 
b/config-ui/src/plugins/components/connection-form/fields/token.tsx
index 344a100ba..904569e24 100644
--- a/config-ui/src/plugins/components/connection-form/fields/token.tsx
+++ b/config-ui/src/plugins/components/connection-form/fields/token.tsx
@@ -47,7 +47,7 @@ export const ConnectionToken = ({ type, label, subLabel, 
initialValue, value, se
 
   return (
     <Block title={label ?? 'Token'} description={subLabel ? subLabel : null} 
required>
-      <Input
+      <Input.Password
         style={{ width: 386 }}
         placeholder={type === 'update' ? '********' : 'Your Token'}
         value={value}
diff --git a/config-ui/src/plugins/register/github/connection-fields/token.tsx 
b/config-ui/src/plugins/register/github/connection-fields/token.tsx
index f4a20d05a..95a322c58 100644
--- a/config-ui/src/plugins/register/github/connection-fields/token.tsx
+++ b/config-ui/src/plugins/register/github/connection-fields/token.tsx
@@ -155,7 +155,7 @@ export const Token = ({
         tokens.map(({ value, isValid, status, from }, i) => (
           <S.Input key={i}>
             <div className="input">
-              <Input
+              <Input.Password
                 style={{ width: 386 }}
                 placeholder="Token"
                 value={value}
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 5c7329555..a85999ba3 100644
--- a/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
+++ b/config-ui/src/plugins/register/jira/connection-fields/auth.tsx
@@ -197,7 +197,7 @@ export const Auth = ({ type, initialValues, values, 
setValues, setErrors }: Prop
                 />
               </Block>
               <Block title="Password" required>
-                <Input
+                <Input.Password
                   style={{ width: 386 }}
                   placeholder={type === 'update' ? '********' : 'Your 
Password'}
                   value={values.password}
@@ -216,7 +216,7 @@ export const Auth = ({ type, initialValues, values, 
setValues, setErrors }: Prop
               }
               required
             >
-              <Input
+              <Input.Password
                 style={{ width: 386 }}
                 placeholder={type === 'update' ? '********' : 'Your Password'}
                 value={values.token}

Reply via email to