From 301ecf77bd1632648d25f657292ee784c693c3ff Mon Sep 17 00:00:00 2001 From: Hamcha Date: Tue, 10 Sep 2019 10:03:17 +0200 Subject: [PATCH] Add rule text filtering --- src/views/DeckBuilder.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/DeckBuilder.vue b/src/views/DeckBuilder.vue index b778549..ae62606 100644 --- a/src/views/DeckBuilder.vue +++ b/src/views/DeckBuilder.vue @@ -17,6 +17,11 @@
+
0) { filters.Name = this.nameFilter; } + if (this.ruleFilter.length > 0) { + filters.Rules = this.ruleFilter; + } const filtered = await getCards(filters); this.filtered = filtered.sort(sortByColor); this.offset = 0; @@ -382,6 +392,10 @@ export default class DeckBuilder extends Vue { this.applyFilters(); } + private ruleChanged() { + this.applyFilters(); + } + private get canGoPrev(): boolean { return this.offset > 0; }