Open FeRaaC opened 7 years ago
Why isn't this integrated via a PR?
I don't think this is the correct fix. The correct fix should be line 76 change from:
MM.getModules().withClass(this.config.defaultClass).exceptWithClass(this.config.everyoneClass).enumerate(function(module) {
to
MM.getModules().withClass(this.config.defaultClass).enumerate(function(module) {
Because when you logout_user, the default classes should show regardless if it also has the everyone class.
Then lines 90-94 can remain the same.
True, was just a small try form myself. But you are right.
Please define not working :) It does work together with the default class doesn't it? Not sure why I did this but I had a reason back then. If you have a better approach send a PR :)
To me the issue is easily visible for a module which only has the 'everyone' class... It does not show when a user is logged in
I created PR #46 to solve this.
@paviro Really great module, thank you so much ! I'm thinking of also creating two more classes: human (for module you want to display when somebody has been seen, stranger or not), and stranger (when somebody is seen but not a known user).
I am sorry for my late response... I will look into your PR.
Hi, our everyoneClass was not working. Being more precise, it didn't load the modules which were tagged for everyone. To fix it you need to add just two little things in the MMM-Facial-Recognition.js:
Line 90 to 94 old code:
Our "fixes":
If you want to still have the login message being "Hello Stranger" you need to name your everyoneClass "Stranger"
Greetings Matze