Check of RunwayNodes

This commit is contained in:
portree_kid
2020-05-16 10:47:18 +02:00
parent 503dacd54a
commit fc25b62737
2 changed files with 13 additions and 5 deletions
+3 -3
View File
@@ -46,11 +46,11 @@
this.$store.dispatch('removeFrequency', this.frequency)
},
isValid (frequency) {
let ok = frequency >= 118 && frequency <= 137
let ok = frequency >= 11800 && frequency <= 13700
if (!ok) {
return false
}
let fractions = (frequency - Math.trunc(frequency)) * 1000
let fractions = (frequency - (Math.trunc(frequency/100)*100))
let subFraction = Math.round(fractions % 25)
switch (subFraction) {
case 0:
@@ -100,7 +100,7 @@
// setter
set: function (newValue) {
this.frequency.value = newValue;
ok = this.isValid(newValue);
this.ok = this.isValid(newValue);
}
}
}