-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] statusCheck in Items not being honored when set at appConfig level #651
Comments
I'm afk at the moment, but what your doing sounds correct, the item-level status check should override whatevers set under appConfig. I can check this later to confirm if there's a bug. But in your example, there's no statusCheck set in there. Did you just miss it out from the paste? |
Oops, thank you for taking a look and catching that. I've gone back and edited the item to include |
Can confirm, is indeed a bug 🐛 Looks like it can be fixed by updating this section in /* Determines if user has enabled online status checks */
enableStatusCheck() {
const globalPref = this.appConfig.statusCheck || false;
const itemPref = this.item.statusCheck;
return typeof itemPref === 'boolean' ? itemPref : globalPref;
}, I'll include it in the next PR :) |
The fix for this issue has now been released in 2.0.9 ✨ If you haven't done so already, please update your instance to Feel free to reach out if you need any more support. If you are enjoying Dashy, consider supporting the project. |
Environment
Self-Hosted (Docker)
Version
2.0.8
Describe the problem
I am setting
statusCheck
totrue
at the appConfig level. I then have some items where I don't want the status check to be enabled, and I am setting those tostatusCheck: false
. However, those items still have the status check enabled.For example, I have:
And then I have:
I would expect
App 1
to have the status check enabled andApp 2
to not have it enabled. However, both items are showing up on the dashboard with the status check enabled.Additional info
No errors are being thrown
Please tick the boxes
The text was updated successfully, but these errors were encountered: