Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

:bug: Fixes status check inheritance (#651)

Alicia Sykes7b39bde573e5
diff --git a/src/mixins/ItemMixin.js b/src/mixins/ItemMixin.js
index 628391d4..7b082dda 100644
--- a/src/mixins/ItemMixin.js
+++ b/src/mixins/ItemMixin.js
@@ -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() {