We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ff093 commit afdb484Copy full SHA for afdb484
src/frontend/devops-pipeline/src/components/pipelineList/ImportPipelinePopup/index.vue
@@ -121,7 +121,7 @@
121
async handleSuccess (result, type = UI_MODE) {
122
let res
123
if (type === UI_MODE) {
124
- const newPipelineName = this.pipelineName || `${result.model.name}_${hashID().slice(0, 8)}`
+ const newPipelineName = result.model.name
125
res = await this.updatePipeline(result, newPipelineName)
126
} else if (type === CODE_MODE) {
127
this.updatePipelineMode(CODE_MODE)
@@ -159,7 +159,7 @@
159
actionType: 'FULL_YAML2MODEL',
160
oldYaml: result
161
})
162
- const newPipelineName = this.pipelineName || `${modelAndSetting.model.name}_${hashID().slice(0, 8)}`
+ const newPipelineName = modelAndSetting.model.name
163
164
const pipeline = {
165
...modelAndSetting.model,
0 commit comments