From 710a07b04b799a0f693162fc6be2043db3652201 Mon Sep 17 00:00:00 2001 From: minie4 Date: Sun, 21 Aug 2022 15:48:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Show=20class=20on=20changes=20no=20?= =?UTF-8?q?filter=20is=20selected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util.js | 7 +++++++ 1 file changed, 7 insertions(+) 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) {