Commit 1c16c4f9 authored by 向偲彪's avatar 向偲彪
Browse files

When modifying the dag, if the DAG is not saved, it cannot be formatted

parent d1878ac1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -181,6 +181,10 @@

      // DAG automatic layout
      dagAutomaticLayout() {
        if(this.store.state.dag.isEditDag) {
          this.$message.warning(`${i18n.$t('Please save the DAG before formatting')}`)
          return false
        }
        $('#canvas').html('')

      // Destroy round robin
+1 −0
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ export default {
        id: payload
      }, res => {
        resolve(res)
        state.isEditDag = false
      }).catch(e => {
        reject(e)
      })
+2 −1
Original line number Diff line number Diff line
@@ -620,5 +620,6 @@ export default {
  zkDirectory: 'zkDirectory',
  'Directory detail': 'Directory detail',
  'Connection name': 'Connection name',
  'Current connection settings': 'Current connection settings'
  'Current connection settings': 'Current connection settings',
  'Please save the DAG before formatting': 'Please save the DAG before formatting'
}
+2 −1
Original line number Diff line number Diff line
@@ -619,5 +619,6 @@ export default {
  zkDirectory: 'zk注册目录',
  'Directory detail': '查看目录详情',
  'Connection name': '连线名',
  'Current connection settings': '当前连线设置'
  'Current connection settings': '当前连线设置',
  'Please save the DAG before formatting': '格式化前请先保存DAG'
}