forked from Gitlink/forgeplus-react
issue
This commit is contained in:
parent
e2ad3b1308
commit
d09e6e2bc6
|
@ -152,18 +152,18 @@ function DivertModal({form , visible , onSuccess , onCancel,owner,repo}){
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
}
|
}
|
||||||
|
|
||||||
<Form.Item label="仓库名称:">
|
<Form.Item label="仓库标识:">
|
||||||
{getFieldDecorator("identifier",
|
{getFieldDecorator("identifier",
|
||||||
{
|
{
|
||||||
rules:[
|
rules:[
|
||||||
{required:true,message:"请输入仓库名称"},
|
{required:true,message:"请输入仓库标识!"},
|
||||||
{
|
{
|
||||||
validator:checkIdentifier
|
validator:checkIdentifier
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
)(
|
)(
|
||||||
<Input placeholder="请输入仓库名称" autoComplete={"off"}/>
|
<Input placeholder="请输入仓库标识" autoComplete={"off"}/>
|
||||||
)}
|
)}
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
</Form>
|
</Form>
|
||||||
|
|
|
@ -359,7 +359,7 @@ function CoderDepot(props){
|
||||||
</AlignCenter>
|
</AlignCenter>
|
||||||
<AlignCenter>
|
<AlignCenter>
|
||||||
{
|
{
|
||||||
baseOperate &&
|
baseOperate && ((projectDetail.type !== 2 && pullsFlag) || issuesFlag )&&
|
||||||
<div className="mr20 addOptionBtn">
|
<div className="mr20 addOptionBtn">
|
||||||
{
|
{
|
||||||
projectDetail.type !== 2 && pullsFlag &&
|
projectDetail.type !== 2 && pullsFlag &&
|
||||||
|
|
|
@ -70,9 +70,9 @@ function Index(props){
|
||||||
function deleteEvent(type,count) {
|
function deleteEvent(type,count) {
|
||||||
let c = count;
|
let c = count;
|
||||||
if(type==="apply"){
|
if(type==="apply"){
|
||||||
setApplyCount(applyCount-count);
|
setTransferCount(transferCount-count);
|
||||||
}else if(type==="undo"){
|
}else if(type==="undo"){
|
||||||
setTransferCount(applyCount-count);
|
setApplyCount(applyCount-count);
|
||||||
}else{
|
}else{
|
||||||
setMessagesCount(0);
|
setMessagesCount(0);
|
||||||
c = messagesCount;
|
c = messagesCount;
|
||||||
|
|
|
@ -53,7 +53,7 @@ function UndoEvent(props){
|
||||||
Axios.post(url).then(result=>{
|
Axios.post(url).then(result=>{
|
||||||
if(result && result.data){
|
if(result && result.data){
|
||||||
getList();
|
getList();
|
||||||
props && props.deleteEvent("undo",1);
|
props && props.deleteEvent("apply",1);
|
||||||
}
|
}
|
||||||
}).catch(error=>{})
|
}).catch(error=>{})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue