Browse Source

timeoutAlarm model interval bug,You can now set negative integers (#3171)

Co-authored-by: qiaozhanwei <qiaozhanwei@outlook.com>
pull/3/MERGE
zhuangchong 5 years ago committed by GitHub
parent
commit
de41ac5083
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/timeoutAlarm.vue

3
dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/_source/timeoutAlarm.vue

@ -91,7 +91,8 @@
return false
}
// Verify timeout duration Non 0 positive integer
if (this.enable && !parseInt(this.interval) && !_.isInteger(this.interval)) {
const reg = /^[1-9]\d*$/
if (this.enable && !reg.test(this.interval)) {
this.$message.warning(`${this.$t('Timeout must be a positive integer')}`)
return false
}

Loading…
Cancel
Save