From 5d7c568397300fe4f0d89303c20bd0b1a8a47ce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Wed, 7 Dec 2022 19:20:22 +0100 Subject: [PATCH] xmas: filter by type --- xmas.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xmas.json b/xmas.json index 8edfc09..d3ff883 100644 --- a/xmas.json +++ b/xmas.json @@ -81,6 +81,15 @@ "lighting": "", "pyramid": "𓉴" }, + "filter": { + "type": { + "name": "{{ trans('filter:type') }}", + "show_default": "true", + "query": "nwr[\"xmas:feature\"=\"{{ value }}\"]", + "type": "select", + "values": "{% for k, v in const %}{% endfor %}" + } + }, "info": [ "", "{% for value, icon in const %}",