diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index 57438c52f..73b40e6c6 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
-import { Spin, Tooltip } from 'antd';
+import { Spin, Tooltip , Button } from 'antd';
import { Link, Route, Switch } from 'react-router-dom';
import { Content , AlignTop } from '../Component/layout';
import DetailBanner from './sub/DetailBanner';
@@ -188,6 +188,7 @@ class Detail extends Component {
firstSync:false,
secondSync:false,
open_devops:false,
+ forkSpin:false,
// 默认分支
defaultBranch:undefined,
@@ -370,6 +371,9 @@ class Detail extends Component {
forkFunc = () => {
const { platform } = this.state;
if(!platform)return;
+ this.setState({
+ forkSpin:true
+ })
const { current_user } = this.props
const { projectsId , owner } = this.props.match.params;
const url = `/${owner}/${projectsId}/forks.json`;
@@ -378,8 +382,13 @@ class Detail extends Component {
this.props.history.push(`/projects/${current_user && current_user.login}/${result.data.identifier}`);
this.props.showNotification(result.data.message);
}
+ this.setState({
+ forkSpin:false
+ })
}).catch(error => {
- console.log(error);
+ this.setState({
+ forkSpin:false
+ })
})
}
@@ -417,7 +426,7 @@ class Detail extends Component {
const { projectDetail, watchers_count, praises_count,
forked_count, firstSync , secondSync ,
isManager, watched, praised,
- project , open_devops , platform , defaultBranch , bannerList } = this.state;
+ project , open_devops , platform , defaultBranch , bannerList , forkSpin } = this.state;
const url = this.props.history.location.pathname;
const urlArr = url.split("/");
const urlFlag = (urlArr.length === 3);
@@ -470,7 +479,7 @@ class Detail extends Component {
((current_user && current_user.admin) || isManager) && (projectDetail && projectDetail.type && projectDetail.type === 2) ?
同步镜像 : ""
}
-
+
-
+
+
-
+
+
+
}
diff --git a/src/forge/Main/list.css b/src/forge/Main/list.css
index 53d904de8..ae3b1eb9b 100644
--- a/src/forge/Main/list.css
+++ b/src/forge/Main/list.css
@@ -305,7 +305,10 @@
border:1px solid #f1f1f1;
display: flex;
align-items: center;
- margin-left: 30px
+ margin-left: 30px;
+ padding:0px;
+ background-color: transparent;
+ box-shadow: none;
}
.ant-tooltip {
max-width: fit-content!important;