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"],
|
project_units:['home',"activity","code"],
|
||||||
divertVisible:false,
|
divertVisible:false,
|
||||||
is_transfering:undefined,
|
is_transfering:undefined,
|
||||||
permission:undefined
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +78,6 @@ class Setting extends Component {
|
||||||
loading:false,
|
loading:false,
|
||||||
project_units:units,
|
project_units:units,
|
||||||
is_transfering:result.data.is_transfering,
|
is_transfering:result.data.is_transfering,
|
||||||
permission:result.data.permission
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -227,8 +225,9 @@ class Setting extends Component {
|
||||||
render() {
|
render() {
|
||||||
const { getFieldDecorator } = this.props.form;
|
const { getFieldDecorator } = this.props.form;
|
||||||
const { projectsId , owner } = this.props.match.params;
|
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 (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<DivertModal
|
<DivertModal
|
||||||
|
@ -326,7 +325,7 @@ class Setting extends Component {
|
||||||
{/* <Mirror /> */}
|
{/* <Mirror /> */}
|
||||||
</WhiteBack>
|
</WhiteBack>
|
||||||
{
|
{
|
||||||
permission && (permission === "Admin" || permission === "Owner")?
|
projectDetail && projectDetail.permission && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner")?
|
||||||
<WhiteBack className="dangerousBox mb20">
|
<WhiteBack className="dangerousBox mb20">
|
||||||
<div>
|
<div>
|
||||||
<div className="dangerousTitle">危险操作区</div>
|
<div className="dangerousTitle">危险操作区</div>
|
||||||
|
|
Loading…
Reference in New Issue