|
|
|
@ -368,9 +368,9 @@ class Repository extends Component {
|
|
|
|
|
{/* })}*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
|
|
{/*{ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?*/}
|
|
|
|
|
{/* <Button size={"small"} className={"fr"} type="link" onClick={this.showDeleteConfirm}><Icon type="delete" /></Button>:""}*/}
|
|
|
|
|
{/*<div className={"both"}></div>*/}
|
|
|
|
|
{ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?
|
|
|
|
|
<Button size={"small"} className={"fr"} type="link" onClick={this.showDeleteConfirm}>删除</Button>:""}
|
|
|
|
|
<div className={"both"}></div>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
@ -385,11 +385,11 @@ class Repository extends Component {
|
|
|
|
|
|
|
|
|
|
<DirectoryTree
|
|
|
|
|
className={"reposanttreeswitcher"}
|
|
|
|
|
// multiple
|
|
|
|
|
multiple
|
|
|
|
|
defaultExpandAll
|
|
|
|
|
// checkable
|
|
|
|
|
checkable={ this.props.current_user && (this.props.current_user.admin ==true || (TPMRightSectionData && TPMRightSectionData.creator && TPMRightSectionData.creator.login == this.props.current_user.login)) ?true:false}
|
|
|
|
|
onSelect={this.onSelectDirectoryTree}
|
|
|
|
|
// onCheck={this.onCheck}
|
|
|
|
|
onCheck={this.onCheck}
|
|
|
|
|
>
|
|
|
|
|
{ trees === undefined ?"": trees === null || trees.length===0?"":trees.map((item, index) => {
|
|
|
|
|
return (
|
|
|
|
|