mirror of https://github.com/Lissy93/dashy.git
🐛 Fixes status check inheritance (#651)
This commit is contained in:
parent
4287092ea2
commit
7b39bde573
|
@ -41,13 +41,13 @@ export default {
|
||||||
size() {
|
size() {
|
||||||
const validSizes = ['small', 'medium', 'large'];
|
const validSizes = ['small', 'medium', 'large'];
|
||||||
if (this.itemSize && validSizes.includes(this.itemSize)) return this.itemSize;
|
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 */
|
/* Determines if user has enabled online status checks */
|
||||||
enableStatusCheck() {
|
enableStatusCheck() {
|
||||||
const globalPref = this.appConfig.statusCheck || false;
|
const globalPref = this.appConfig.statusCheck || false;
|
||||||
const itemPref = this.item.statusCheck || false;
|
const itemPref = this.item.statusCheck;
|
||||||
return itemPref || globalPref;
|
return typeof itemPref === 'boolean' ? itemPref : globalPref;
|
||||||
},
|
},
|
||||||
/* Determine how often to re-fire status checks */
|
/* Determine how often to re-fire status checks */
|
||||||
statusCheckInterval() {
|
statusCheckInterval() {
|
||||||
|
|
Loading…
Reference in New Issue