Check-in rule editor: Set tolerance to 0 when using custom time

This commit is contained in:
Raphael Michel
2021-02-19 18:12:30 +01:00
parent 8330448a94
commit 37ba885c55

View File

@@ -362,6 +362,9 @@ $(document).ready(function () {
} else { } else {
this.$set(this.rule[this.operator], 1, time); this.$set(this.rule[this.operator], 1, time);
} }
if (event.target.value === "custom") {
this.$set(this.rule[this.operator], 2, 0);
}
}, },
setTimeValue: function (val) { setTimeValue: function (val) {
console.log(val); console.log(val);