|
@@ -169,17 +169,12 @@
|
|
|
this.$emit('onUdp')
|
|
|
}
|
|
|
|
|
|
- // Edit => direct storage
|
|
|
- if (this.store.state.dag.name) {
|
|
|
+ // verify that the name exists
|
|
|
+ this.store.dispatch('dag/verifDAGName', this.name).then(res => {
|
|
|
_verif()
|
|
|
- } else {
|
|
|
- // New First verify that the name exists
|
|
|
- this.store.dispatch('dag/verifDAGName', this.name).then(res => {
|
|
|
- _verif()
|
|
|
- }).catch(e => {
|
|
|
- this.$message.error(e.msg || '')
|
|
|
- })
|
|
|
- }
|
|
|
+ }).catch(e => {
|
|
|
+ this.$message.error(e.msg || '')
|
|
|
+ })
|
|
|
},
|
|
|
/**
|
|
|
* Close the popup
|