Skip to content

Commit 160511d

Browse files
committed
change label and state setter for default fetch
1 parent b0b322c commit 160511d

File tree

4 files changed

+337
-334
lines changed

4 files changed

+337
-334
lines changed

ui/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"react-router-dom": "^5.1.2",
3030
"react-scripts": "^4.0.1",
3131
"react-spring": "^8.0.27",
32-
"tailwindcss": "^2.0.2",
32+
"tailwindcss": "^2.0.3",
3333
"ts-jest": "^26.5.0",
3434
"typescript": "^4.1.3",
3535
"uuid": "^8.3.2",

ui/src/Components/DashBoard/AddNewRepoComponent/AddRepoActionButtonsComponent.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,23 @@ export default function AddRepoActionButtonsComponent() {
5858

5959
if (initSwitch) {
6060
initCheck = true;
61-
} else if (cloneSwitch && cloneURL) {
62-
cloneCheck = true;
63-
if (authMethod === "https") {
64-
userName = httpsAuthInputs.userName;
65-
password = httpsAuthInputs.password;
66-
}
61+
}
6762

68-
if (authMethod === "ssh") {
69-
if (sshKeyPath) {
70-
sshKeyPath = sshKeyPath.replaceAll("\\", "\\\\");
71-
} else {
72-
dispatch({
73-
type: AddRepoActionTypes.SET_INPUT_INVALID,
74-
payload: true,
75-
});
76-
return;
77-
}
63+
cloneCheck = true;
64+
if (authMethod === "https") {
65+
userName = httpsAuthInputs.userName;
66+
password = httpsAuthInputs.password;
67+
}
68+
69+
if (authMethod === "ssh") {
70+
if (sshKeyPath) {
71+
sshKeyPath = sshKeyPath.replaceAll("\\", "\\\\");
72+
} else {
73+
dispatch({
74+
type: AddRepoActionTypes.SET_INPUT_INVALID,
75+
payload: true,
76+
});
77+
return;
7878
}
7979
}
8080

0 commit comments

Comments
 (0)