仓库设置

This commit is contained in:
caishi 2022-04-01 19:19:15 +08:00
parent fc3a1e4088
commit 1f7dda2526
3 changed files with 16 additions and 13 deletions

View File

@ -75,6 +75,8 @@ function CoderDepot(props){
} }
if(i && i.length === 0){ if(i && i.length === 0){
setIssuesFlag(false); setIssuesFlag(false);
console.log(bannerList);
} }
} }
},[bannerList]) },[bannerList])
@ -431,19 +433,16 @@ function CoderDepot(props){
} }
</AlignCenter> </AlignCenter>
<AlignCenter className="depotBtn"> <AlignCenter className="depotBtn">
{ <div className="addOptionBtn">
<div className="addOptionBtn"> {
{ baseOperate &&
baseOperate && <CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/compare/master...${turnbar(branchName || defaultBranch)}`)} >+ 合并请求</CheckProfile>
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/compare/master...${turnbar(branchName || defaultBranch)}`)} >+ 合并请求</CheckProfile> }
} {
issuesFlag &&
<a onClick={createIssue}>+ 疑修</a> <a onClick={createIssue}>+ 疑修</a>
{/* { }
baseOper && </div>
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/issues/new`)} >+ 疑修</CheckProfile>
} */}
</div>
}
{ fileOperate && { fileOperate &&
<Dropdown <Dropdown
overlay={fileMenu()} overlay={fileMenu()}

View File

@ -524,6 +524,7 @@ class Detail extends Component {
const common = { const common = {
getDetail: this.getDetail, getDetail: this.getDetail,
getBanner:this.getBanner,
changeOpenDevops: this.changeOpenDevops, changeOpenDevops: this.changeOpenDevops,
defaultBranch defaultBranch
} }

View File

@ -147,7 +147,7 @@ class Setting extends Component {
update=(values)=>{ update=(values)=>{
const { projectsId , owner } = this.props.match.params; const { projectsId , owner } = this.props.match.params;
const { private_check } = this.state; const { private_check , project_units } = this.state;
const url = `/${owner}/${projectsId}.json`; const url = `/${owner}/${projectsId}.json`;
axios.put(url, { axios.put(url, {
name: values.project_name, name: values.project_name,
@ -164,6 +164,9 @@ class Setting extends Component {
const { getDetail } = this.props; const { getDetail } = this.props;
getDetail && getDetail(); getDetail && getDetail();
} }
if(project_units!==values.project_units){
window.location.reload();
}
} }
this.setState({ this.setState({
loading:false loading:false