提交 fb6c4dbd 编写于 作者: B break60

Workflow definition name re-modified and added check

上级 5018117e
......@@ -170,8 +170,14 @@
}
// Edit => direct storage
if (this.store.state.dag.name) {
if (this.store.state.dag.name && this.store.state.dag.name===this.name) {
_verif()
} else if (this.store.state.dag.name && this.store.state.dag.name!==this.name) {
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
_verif()
}).catch(e => {
this.$message.error(e.msg || '')
})
} else {
// New First verify that the name exists
this.store.dispatch('dag/verifDAGName', this.name).then(res => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册