Browse Source

Merge pull request #3925 from break60/1.3.3-release

[fixbug-3924][ui]Workflow definition name re-modified and added check
pull/3/MERGE
xingchun-chen 4 years ago committed by GitHub
parent
commit
72627be682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue

8
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/udp/udp.vue

@ -170,8 +170,14 @@
} }
// Edit => direct storage // Edit => direct storage
if (this.store.state.dag.name) { if (this.store.state.dag.name && this.store.state.dag.name===this.name) {
_verif() _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 { } else {
// New First verify that the name exists // New First verify that the name exists
this.store.dispatch('dag/verifDAGName', this.name).then(res => { this.store.dispatch('dag/verifDAGName', this.name).then(res => {

Loading…
Cancel
Save