Skip to content

Commit

Permalink
Merge pull request #10854 from lockiechen/issue_8125_hotfix
Browse files Browse the repository at this point in the history
feat:流水线模板导出后再导入新建失败 issue #10752
  • Loading branch information
bkci-bot authored Aug 26, 2024
2 parents 8f4866e + 3f5bca3 commit 5153153
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div v-if="execDetail" class="pipeline-detail-header">
<pipeline-bread-crumb :show-record-entry="isDebugExec" :pipeline-name="pipelineInfo?.pipelineName" />
<pipeline-bread-crumb :show-record-entry="isDebugExec" show-build-num-switch :pipeline-name="pipelineInfo?.pipelineName" />
<aside :class="['pipeline-detail-right-aside', {
'is-debug-exec-detail': isDebugExec
}]">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
},
props: {
showRecordEntry: Boolean,
showBuildNumSwitch: Boolean,
pipelineName: String,
isLoading: Boolean,
showPacTag: {
Expand Down Expand Up @@ -90,7 +91,7 @@
: []
),
...(
this.$route.name === 'pipelinesDetail'
this.showBuildNumSwitch
? [{
slot: BuildNumSwitcher,
slotProps: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@
})
},
async updatePipeline (result, newPipelineName) {
const { templateId, instanceFromTemplate, ...restModel } = result.model
const pipeline = {
...result.model,
instanceFromTemplate: false,
...restModel,
name: newPipelineName
}
try {
Expand Down

0 comments on commit 5153153

Please sign in to comment.