forked from Gitlink/forgeplus-react
project 镜像、fork
This commit is contained in:
parent
10466ac4a2
commit
58228e90c7
|
@ -181,7 +181,7 @@ export default Form.create()(
|
|||
</Radio.Group>, false
|
||||
)}
|
||||
</Form>
|
||||
<p className="required">允许访问项目单元:</p>
|
||||
{/* <p className="required">允许访问项目单元:</p>
|
||||
<AlignCenter className="mb10">
|
||||
<Switch checked={switch_box_code} onClick={switch_code_types} />
|
||||
<span className="ml30 color-grey-3">代码库<span className="color-grey-8 ml15">(查看源码、文件、提交和分支)</span></span>
|
||||
|
@ -198,7 +198,8 @@ export default Form.create()(
|
|||
<Switch checked={switch_box_release} onClick={switch_releas_types} />
|
||||
<span className="ml30 color-grey-3">版本发布<span className="color-grey-8 ml15">(跟踪项目版本和下载)</span></span>
|
||||
</AlignCenter>
|
||||
<Button type={"primary"} onClick={saveGroupFrom}>{groupId ? "更新团队设置" : "新建团队"}</Button>
|
||||
*/}
|
||||
<Button type={"primary"} onClick={saveGroupFrom}>{groupId ? "更新团队设置" : "新建团队"}</Button>
|
||||
<Cancel className="ml30" onClick={() => cancelEdit()}><span className="pl30 pr30">取消</span></Cancel>
|
||||
</Div>
|
||||
</WhiteBack>
|
||||
|
|
|
@ -111,7 +111,7 @@ export default ((props) => {
|
|||
okText="确认"
|
||||
cancelText="取消"
|
||||
>
|
||||
<a className="color-grey-8">移除成员</a>
|
||||
<a className="color-red">移除成员</a>
|
||||
</Popconfirm>
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,24 @@
|
|||
import React from 'react';
|
||||
import ListCount from '../Component/ListCount';
|
||||
import { Link } from 'react-router-dom';
|
||||
import { Tooltip } from 'antd';
|
||||
function ListItem({item,key,OIdentifier}) {
|
||||
return(
|
||||
<div className="team_project" key={key}>
|
||||
<p className="t_p_title">
|
||||
<span className="flex1">
|
||||
<Link to={`/projects/${OIdentifier}/${item.identifier}`} className="name">{item.identifier}</Link>
|
||||
<i className="iconfont icon-banbenku font-20 color-green ml8" />
|
||||
<i className="iconfont icon-jingxiang font-18 color-green ml8" />
|
||||
<i className="iconfont icon-fork font-18 color-orange ml8" />
|
||||
{ item.forked_from_project_id && <i className="iconfont icon-fork font-18 color-orange ml8" /> }
|
||||
{
|
||||
item.type && item.type !== 0 ?
|
||||
item.type === 2 ?
|
||||
<Tooltip title="该项目是一个镜像" className="ml8">
|
||||
<i className="iconfont icon-banbenku font-18 color-green" />
|
||||
</Tooltip>:
|
||||
<span className="ml8">
|
||||
<i className="iconfont icon-jingxiang font-18 color-green" />
|
||||
</span>:""
|
||||
}
|
||||
</span>
|
||||
<ListCount fork={item.forked_count} parise={item.praises_count}/>
|
||||
</p>
|
||||
|
|
|
@ -105,7 +105,7 @@ export default (({organizeDetail})=>{
|
|||
let c_isAdmin = organizeDetail && organizeDetail.is_admin;
|
||||
let last = (data && data.length === 1) && (item.team_names && item.team_names.length === 1 && item.team_names[0]==="Owners");
|
||||
return (
|
||||
c_isAdmin && !last && <Popconfirm title="是否将此成员移出组织?" okText={"是"} cancelText={"否"} onConfirm={()=>deleteMember(item.user && item.user.login)}><a className="color-grey-8">移除成员</a></Popconfirm>
|
||||
c_isAdmin && !last && <Popconfirm title="是否将此成员移出组织?" okText={"是"} cancelText={"否"} onConfirm={()=>deleteMember(item.user && item.user.login)}><a className="color-red">移除成员</a></Popconfirm>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue