Skip to content

Commit a234f0b

Browse files
committed
remove default fetch option to match new api
1 parent 6626f0f commit a234f0b

File tree

2 files changed

+7
-23
lines changed

2 files changed

+7
-23
lines changed

ui/package-lock.json

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

ui/src/Components/DashBoard/Repository/RepoComponents/RepoDetails/RepoDetailBackdrop/FetchPullActionComponent.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default function FetchFromRemoteComponent(props) {
9494

9595
function actionHandler(remote = "", branch = "") {
9696
setLoading(true);
97-
97+
setResult([]);
9898
const getAxiosRequestBody = (remote, branch) => {
9999
let gqlQuery = "";
100100
if (actionType === "fetch") {
@@ -185,22 +185,6 @@ export default function FetchFromRemoteComponent(props) {
185185
<div className="text-center font-sans font-semibold mx-auto w-full p-3 text-2xl border-b-2 border-dashed text-gray-800">
186186
Fetch from Remote
187187
</div>
188-
<div
189-
className="flex justify-center items-center w-11/12 mx-auto my-4 text-center p-1 font-sans font-medium text-lg cursor-pointer text-indigo-400 hover:text-indigo-500 xl:w-3/5 lg:w-3/4 md:w-3/4 sm:w-11/12"
190-
onClick={() => {
191-
setResult([]);
192-
actionHandler();
193-
}}
194-
>
195-
<div className="text-2xl text-indigo-800 mx-4">
196-
<FontAwesomeIcon
197-
icon={["fas", "exclamation-circle"]}
198-
></FontAwesomeIcon>
199-
</div>
200-
<div>
201-
Click to Fetch from the first available remote and branch
202-
</div>
203-
</div>
204188
</div>
205189
) : null}
206190
{actionType === "pull" ? (

0 commit comments

Comments
 (0)