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