forked from Gitlink/forgeplus-react
仓库设置
This commit is contained in:
parent
fc3a1e4088
commit
1f7dda2526
|
@ -75,6 +75,8 @@ function CoderDepot(props){
|
|||
}
|
||||
if(i && i.length === 0){
|
||||
setIssuesFlag(false);
|
||||
console.log(bannerList);
|
||||
|
||||
}
|
||||
}
|
||||
},[bannerList])
|
||||
|
@ -431,19 +433,16 @@ function CoderDepot(props){
|
|||
}
|
||||
</AlignCenter>
|
||||
<AlignCenter className="depotBtn">
|
||||
{
|
||||
<div className="addOptionBtn">
|
||||
{
|
||||
baseOperate &&
|
||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/compare/master...${turnbar(branchName || defaultBranch)}`)} >+ 合并请求</CheckProfile>
|
||||
}
|
||||
<div className="addOptionBtn">
|
||||
{
|
||||
baseOperate &&
|
||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/compare/master...${turnbar(branchName || defaultBranch)}`)} >+ 合并请求</CheckProfile>
|
||||
}
|
||||
{
|
||||
issuesFlag &&
|
||||
<a onClick={createIssue}>+ 疑修</a>
|
||||
{/* {
|
||||
baseOper &&
|
||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/issues/new`)} >+ 疑修</CheckProfile>
|
||||
} */}
|
||||
</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
{ fileOperate &&
|
||||
<Dropdown
|
||||
overlay={fileMenu()}
|
||||
|
|
|
@ -524,6 +524,7 @@ class Detail extends Component {
|
|||
|
||||
const common = {
|
||||
getDetail: this.getDetail,
|
||||
getBanner:this.getBanner,
|
||||
changeOpenDevops: this.changeOpenDevops,
|
||||
defaultBranch
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ class Setting extends Component {
|
|||
|
||||
update=(values)=>{
|
||||
const { projectsId , owner } = this.props.match.params;
|
||||
const { private_check } = this.state;
|
||||
const { private_check , project_units } = this.state;
|
||||
const url = `/${owner}/${projectsId}.json`;
|
||||
axios.put(url, {
|
||||
name: values.project_name,
|
||||
|
@ -164,6 +164,9 @@ class Setting extends Component {
|
|||
const { getDetail } = this.props;
|
||||
getDetail && getDetail();
|
||||
}
|
||||
if(project_units!==values.project_units){
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
this.setState({
|
||||
loading:false
|
||||
|
|
Loading…
Reference in New Issue