Fix PowderInputNode style
This commit is contained in:
parent
e47673ef17
commit
883f6602f0
1 changed files with 6 additions and 4 deletions
|
@ -452,10 +452,11 @@ class PowderInputNode extends InputNode {
|
||||||
let first = input.slice(0, 2);
|
let first = input.slice(0, 2);
|
||||||
let powder = powderIDs.get(first);
|
let powder = powderIDs.get(first);
|
||||||
if (powder === undefined) {
|
if (powder === undefined) {
|
||||||
if (first.length > 0)
|
if (first.length > 0) {
|
||||||
errorederrors.push(first);
|
errorederrors.push(first);
|
||||||
else
|
} else {
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
powdering.push(powder);
|
powdering.push(powder);
|
||||||
}
|
}
|
||||||
|
@ -468,10 +469,11 @@ class PowderInputNode extends InputNode {
|
||||||
errorederrors.push("Too many powders: " + powdering.length);
|
errorederrors.push("Too many powders: " + powdering.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (errorederrors.length)
|
if (errorederrors.length) {
|
||||||
this.input_field.classList.add("is-invalid");
|
this.input_field.classList.add("is-invalid");
|
||||||
else
|
} else {
|
||||||
this.input_field.classList.remove("is-invalid");
|
this.input_field.classList.remove("is-invalid");
|
||||||
|
}
|
||||||
|
|
||||||
return powdering;
|
return powdering;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue