Show class on changes no filter is selected

This commit is contained in:
2022-08-21 15:48:24 +02:00
parent fa9de85eed
commit 710a07b04b

View File

@ -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) {