forked from Gitlink/forgeplus-react
导入仓库失败的提示信息内容修改
This commit is contained in:
parent
1d2d748613
commit
fc4a4e2eff
|
|
@ -439,12 +439,17 @@ function CoderDepot(props){
|
|||
{
|
||||
mirror_status === 2 &&
|
||||
<div className='importFailTip'>
|
||||
<img src={imNoneImg} alt="" width={325}/>
|
||||
<img src={imNoneImg} alt="" width={290}/>
|
||||
{
|
||||
projectDetail.permission && mangementOperate.includes(projectDetail.permission) ?
|
||||
<p>导入项目失败,请前往 <Link className='color-blue' to={`/${owner}/${projectsId}/settings`}>仓库设置</Link> 删除本项目后重新导入!</p>
|
||||
<div className='failInfo'>
|
||||
<p className='font-18 weight500 color-grey-3'>导入项目失败,可能存在以下原因:</p>
|
||||
<li>1、导入的仓库 URL 错误。</li>
|
||||
<li>2、您需要导入的可能是一个您无权访问的私有仓库,需要输入授权验证仓库的帐号、密码(或者个人令牌),此信息仅用于本次代码同步,不做任何记录。</li>
|
||||
<p className='font-18 weight500 color-grey-3'>请前往 <Link className='color-blue' to={`/${owner}/${projectsId}/settings`}>仓库设置</Link> 删除本项目后重新导入!</p>
|
||||
</div>
|
||||
:
|
||||
<p>导入项目失败,请联系管理员重新导入!</p>
|
||||
<p className='font-17 weight500'>导入项目失败,请联系管理员重新导入!</p>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -299,7 +299,7 @@ class Detail extends Component {
|
|||
projectdata = this.props.defaultDetail
|
||||
} else {
|
||||
const res = await getProjectDetailFunc(owner, projectsId, !window.location.host);
|
||||
if (res.status === 200) {
|
||||
if (res && res.status === 200) {
|
||||
projectdata = res.data
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -563,10 +563,18 @@
|
|||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
font-weight: 400;
|
||||
font-size: 15px;
|
||||
color: #4C5B76;
|
||||
padding-top: 50px;
|
||||
.failInfo{
|
||||
max-width: 480px;
|
||||
li{
|
||||
font-size: 15px;
|
||||
}
|
||||
}
|
||||
img{
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 35px;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue