forked from DigiLive/mushroom-strategy
Add option to hide person cards
Now you should be able to hide person entities from the home page.
This commit is contained in:
1 parent
e038bc64fd
commit
5bded12e70
4 files changed
+23
-19
No files matched your search
@@ -161,7 +161,11 @@ class HomeView extends AbstractView {
|
||||
const cards = [];
|
||||
|
||||
import("../cards/PersonCard").then(personModule => {
|
||||
for (const person of Helper.entities.filter(entity => entity.entity_id.startsWith("person."))) {
|
||||
for (const person of Helper.entities.filter(entity => {
|
||||
return entity.entity_id.startsWith("person.")
|
||||
&& entity.hidden_by == null
|
||||
&& entity.disabled_by == null
|
||||
})) {
|
||||
cards.push(new personModule.PersonCard(person).getCard());
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user