Skip to content

Commit

Permalink
🐛 Fixes status check inheritance (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed May 13, 2022
1 parent 4287092 commit 7b39bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mixins/ItemMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export default {
size() {
const validSizes = ['small', 'medium', 'large'];
if (this.itemSize && validSizes.includes(this.itemSize)) return this.itemSize;
return this.appConfig.iconSize || defaultSize;
return this.$store.getters.iconSize || defaultSize;
},
/* Determines if user has enabled online status checks */
enableStatusCheck() {
const globalPref = this.appConfig.statusCheck || false;
const itemPref = this.item.statusCheck || false;
return itemPref || globalPref;
const itemPref = this.item.statusCheck;
return typeof itemPref === 'boolean' ? itemPref : globalPref;
},
/* Determine how often to re-fire status checks */
statusCheckInterval() {
Expand Down

0 comments on commit 7b39bde

Please sign in to comment.