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; }