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){
|
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 &&
|
|
||||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/issues/new`)} >+ 疑修</CheckProfile>
|
|
||||||
} */}
|
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
|
</div>
|
||||||
{ fileOperate &&
|
{ fileOperate &&
|
||||||
<Dropdown
|
<Dropdown
|
||||||
overlay={fileMenu()}
|
overlay={fileMenu()}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue