From 2260774a582d5da3f580852319b6047d5122e701 Mon Sep 17 00:00:00 2001 From: Gregoo Date: Fri, 31 Jan 2025 10:54:11 +0100 Subject: [PATCH] Rename solo and attribute to value and metadata in grid filter --- static/scripts/grid/filter.js | 6 +++--- templates/sets.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/scripts/grid/filter.js b/static/scripts/grid/filter.js index d0d8903..e2eff7b 100644 --- a/static/scripts/grid/filter.js +++ b/static/scripts/grid/filter.js @@ -63,15 +63,15 @@ class BrickGridFilter { // Multi-attribute filter switch (select.dataset.filter) { // List contains values - case "solo": + case "value": options.filters.push({ attribute: select.dataset.filterAttribute, value: select.value, }) break; - // List contains attribute name, looking for true/false - case "status": + // List contains metadata attribute name, looking for true/false + case "metadata": if (select.value.startsWith("-")) { options.filters.push({ attribute: select.value.substring(1), diff --git a/templates/sets.html b/templates/sets.html index e8d70a2..27aff00 100644 --- a/templates/sets.html +++ b/templates/sets.html @@ -41,7 +41,7 @@
Status {% for theme in collection.themes %}