This is an automated email from the ASF dual-hosted git repository. mintsweet pushed a commit to branch fix-reset-password-component in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit cb6a7ebf870bdc390dfef7b71389ecc4a2d6b714 Author: mintsweet <[email protected]> AuthorDate: Tue Jun 11 14:56:25 2024 +1200 fix: reset password component in plugin connection --- .../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}
