forked from Gitlink/forgeplus-react
项目转移-转移权限
This commit is contained in:
parent
e10f9893e0
commit
4ba63fd8fa
|
@ -29,7 +29,6 @@ class Setting extends Component {
|
|||
project_units:['home',"activity","code"],
|
||||
divertVisible:false,
|
||||
is_transfering:undefined,
|
||||
permission:undefined
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -79,7 +78,6 @@ class Setting extends Component {
|
|||
loading:false,
|
||||
project_units:units,
|
||||
is_transfering:result.data.is_transfering,
|
||||
permission:result.data.permission
|
||||
});
|
||||
}
|
||||
})
|
||||
|
@ -227,8 +225,9 @@ class Setting extends Component {
|
|||
render() {
|
||||
const { getFieldDecorator } = this.props.form;
|
||||
const { projectsId , owner } = this.props.match.params;
|
||||
const { projectDetail } = this.props;
|
||||
|
||||
const { CategoryList, LanguageList, private_check ,loading , divertVisible , permission , is_transfering } = this.state;
|
||||
const { CategoryList, LanguageList, private_check ,loading , divertVisible , is_transfering } = this.state;
|
||||
return (
|
||||
<div>
|
||||
<DivertModal
|
||||
|
@ -326,7 +325,7 @@ class Setting extends Component {
|
|||
{/* <Mirror /> */}
|
||||
</WhiteBack>
|
||||
{
|
||||
permission && (permission === "Admin" || permission === "Owner")?
|
||||
projectDetail && projectDetail.permission && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner")?
|
||||
<WhiteBack className="dangerousBox mb20">
|
||||
<div>
|
||||
<div className="dangerousTitle">危险操作区</div>
|
||||
|
|
Loading…
Reference in New Issue