forked from Gitlink/forgeplus-react
This commit is contained in:
parent
eee8d4659c
commit
e65a1debc5
|
@ -39,7 +39,7 @@ function Dispose(props){
|
|||
const url = `/ci/pipelines/list.json`;
|
||||
axios.get(url,{
|
||||
params:{
|
||||
identifier:projectsId,
|
||||
identifier:projectsId,owner,
|
||||
page,limit
|
||||
}
|
||||
}).then(result=>{
|
||||
|
|
|
@ -29,8 +29,12 @@ function List({ list, operate , projectsId , owner , showModal , deleteFunc }){
|
|||
dataIndex:"file_name",
|
||||
key:1,
|
||||
width:"15%",
|
||||
className:"color-blue",
|
||||
ellipsis:true
|
||||
ellipsis:true,
|
||||
render:(value,item)=>{
|
||||
return(
|
||||
<Link to={`/projects/${owner}/${projectsId}?url=${value}`} className="color-blue">{value}</Link>
|
||||
)
|
||||
}
|
||||
},
|
||||
{
|
||||
title:"触发分支",
|
||||
|
|
|
@ -34,7 +34,7 @@ function disposePipeline(props){
|
|||
function InitTemplates(){
|
||||
const url = `/ci/templates/templates_by_stage.json`;
|
||||
axios.get(url,{
|
||||
params:{ stage_type:stageType }
|
||||
params:{ stage_type:stageType, id:disposeId }
|
||||
}).then(result=>{
|
||||
if(result && result.data){
|
||||
setTemplates(result.data);
|
||||
|
@ -261,9 +261,8 @@ function disposePipeline(props){
|
|||
// 确认提交
|
||||
function sureSubmit(){
|
||||
setLoading(true);
|
||||
const { defaultBranch } = props;
|
||||
let params = {
|
||||
branch: defaultBranch,
|
||||
branch: datas.branch,
|
||||
content:datas.content,
|
||||
filepath:'.trustie-pipeline.yml',
|
||||
message:'',
|
||||
|
|
Loading…
Reference in New Issue