diff --git a/src/util.js b/src/util.js index 5d5139d..39f9105 100644 --- a/src/util.js +++ b/src/util.js @@ -1,7 +1,14 @@ import { substitutionTexts } from "./definitions"; +import { classFilter } from "./store"; export function getSubstitutionText(substitution) { var text = ""; + + if (!classFilter.value || classFilter.value == "none") { + text += + substitution.class.join(", ") + + (substitution.class.length > 1 ? " haben " : " hat "); + } if (substitution.type == "change") { const change = substitution.change; if (change.subject) {