This is an automated email from the ASF dual-hosted git repository. abeizn pushed a commit to branch release-v1.0 in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 8ea3cfc7aa1c74f313c7d101970a1124aac194c3 Author: 青湛 <[email protected]> AuthorDate: Fri Mar 29 14:37:12 2024 +1300 fix: test status not reset when token changed (#7246) --- config-ui/src/routes/onboard/step-2.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/config-ui/src/routes/onboard/step-2.tsx b/config-ui/src/routes/onboard/step-2.tsx index 0470eba0e..432ba34ce 100644 --- a/config-ui/src/routes/onboard/step-2.tsx +++ b/config-ui/src/routes/onboard/step-2.tsx @@ -136,7 +136,10 @@ export const Step2 = () => { subLabel={`Create a personal access token in ${config.name}`} initialValue="" value={payload.token} - setValue={(token) => setPayload({ ...payload, token })} + setValue={(token) => { + setPayload({ ...payload, token }); + setTestStatus(false); + }} error="" setError={() => {}} /> @@ -158,7 +161,10 @@ export const Step2 = () => { <ConnectionUsername initialValue="" value={payload.username} - setValue={(username) => setPayload({ ...payload, username })} + setValue={(username) => { + setPayload({ ...payload, username }); + setTestStatus(false); + }} error="" setError={() => {}} /> @@ -167,7 +173,10 @@ export const Step2 = () => { label="App Password" initialValue="" value={payload.password} - setValue={(password) => setPayload({ ...payload, password })} + setValue={(password) => { + setPayload({ ...payload, password }); + setTestStatus(false); + }} error="" setError={() => {}} />
