|
|
@ -169,17 +169,12 @@ |
|
|
|
this.$emit('onUdp') |
|
|
|
this.$emit('onUdp') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Edit => direct storage |
|
|
|
// verify that the name exists |
|
|
|
if (this.store.state.dag.name) { |
|
|
|
|
|
|
|
_verif() |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
// 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 => { |
|
|
|
_verif() |
|
|
|
_verif() |
|
|
|
}).catch(e => { |
|
|
|
}).catch(e => { |
|
|
|
this.$message.error(e.msg || '') |
|
|
|
this.$message.error(e.msg || '') |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Close the popup |
|
|
|
* Close the popup |
|
|
|