You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2024/03/29 01:37:20 UTC

(incubator-devlake) branch main updated: fix: test status not reset when token changed (#7246)

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

klesh 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 6d5f28c79 fix: test status not reset when token changed (#7246)
6d5f28c79 is described below

commit 6d5f28c7955088bbd87e24accca8570b833237fa
Author: 青湛 <0x...@gmail.com>
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={() => {}}
             />