mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
client lint first pass
This commit is contained in:
@@ -264,11 +264,6 @@ export default {
|
||||
},
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
searchText: throttle(function throttleSearch () {
|
||||
this.searchTextThrottled = this.searchText.toLowerCase();
|
||||
}, 250),
|
||||
},
|
||||
computed: {
|
||||
...mapState({
|
||||
content: 'content',
|
||||
@@ -281,7 +276,8 @@ export default {
|
||||
this.groups.forEach(group => {
|
||||
const groupKey = group.key;
|
||||
group.quantity = 0; // resetf the count
|
||||
const itemsArray = itemsByType[groupKey] = [];
|
||||
itemsByType[groupKey] = [];
|
||||
const itemsArray = itemsByType[groupKey];
|
||||
const contentItems = this.content[groupKey];
|
||||
|
||||
each(this.user.items[groupKey], (itemQuantity, itemKey) => {
|
||||
@@ -342,6 +338,11 @@ export default {
|
||||
return this.groups.some(g => g.selected);
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
searchText: throttle(function throttleSearch () {
|
||||
this.searchTextThrottled = this.searchText.toLowerCase();
|
||||
}, 250),
|
||||
},
|
||||
methods: {
|
||||
userHasPet (potionKey, eggKey) {
|
||||
const animalKey = `${eggKey}-${potionKey}`;
|
||||
|
||||
Reference in New Issue
Block a user